我对隐写术是个新手。尝试做一个测试,我得到了这个错误:
'hex' is not a text encoding; use codecs.encode() to handle arbitrary codecs我读过关于binascii的文章,但是我怎么才能让它工作呢?
我的代码是这样的:
from __future__ import absolute_import, unicode_literals
from steganography.steganography import Steganography
path = "/Users/cohen/Desktop/Screenshot_030.png"
output_path = "/Users/cohen/Desktop/output_steganography.png"
text = "/Users/cohen/Desktop/test.txt"
Steganography.encode(path, output_path, text) #---here is the line with error谢谢!
发布于 2017-12-23 07:28:43
事实上,我也只是检查了一下。该项目与Python 3不兼容。
你可以在GitHub上找到很多很好的简单的隐写术模块,特别是当你想测试最低有效位技术的时候。例如,此版本与Python3兼容:https://github.com/cedricbonhomme/Stegano
https://stackoverflow.com/questions/47837934
复制相似问题