python图像隐写_Python隐写工具,用来在图像中隐藏图像或文本

Matroshka是一个用纯Python编写的命令行隐写工具,可以将图像或文本隐藏在图像的最低有效位中。它使用HMAC-SHA256进行加密,并通过XTEA算法在CFB模式下进行解密,支持PNG或BMP格式的无损图像。工具不适用于严肃的加密目的。
摘要由CSDN通过智能技术生成

Матрёшка

615106e7bacbfc15dacb6af754127f32.png

About

Matroshka is a command-line steganography tool written in pure Python. You can use it to hide and encrypt images or text in the least significant bits of pixels in an image.

Encryption

The encryption uses HMAC-SHA256 to authenticate the hidden data. Therefore the supplied MAC password is hashed with SHA-256 digest to generate the HMAC-SHA256 key. The MAC and the message data is further encrypted using the XTEA algorithm in CFB mode running 32 iterations, before being embedded in the image data. The SHA-256 hash for the XTEA key is created using the 128 high-order bits of the supplied password. A random 8 byte seed is used in the CFB 64 bit block cipher.

Decryption

The random seed is appended to the hidden secret and is used with

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值