一个小的示例包
stegp的Python项目详细描述
stegpy
一种通过隐写术对图像和音频文件中的信息进行编码的程序。
在左边,一所房子,里面隐藏着一个隐藏的图像。右边是一只猫的隐藏图像。它是通过除去宿主图像中每个颜色分量的所有有效位(除了最后一个有效位)来显示的。
支持的主机格式:
- 巴布亚新几内亚
- bmp
- gif
- 网络电话
- 波
不同格式的图像会自动转换为PNG格式。完全不支持不同的音频格式。
依赖关系:
- 努比
- 密码学
- 枕头(叉子)
安装:
$ pip3 install stegpy
使用方法:
- 隐藏消息或文件:
$ stegpy "Hello World!" image.png
- 提取:
$ stegpy _image.png
- 加密:
$ stegpy "Hello World!" image.png -p Enter password (will not be echoed): Verify password (will not be echoed): $ stegpy _image.png -p Enter password (will not be echoed): Hello World!
- 更多选项:
$ stegpy -h
待办事项:
- 添加文档字符串
- 允许跨多个文件编码
- 支持jpeg&flac作为主机