草庐IT

python - Python 中的隐写术 - Stepic

使用Stepic0.3。我正在执行将消息编码为JPG图像的命令。我使用的代码如下:fromPILimportImageimportstepicim=Image.open("tester.jpg")im2=stepic.encode(im,'0987639987069730979076409784690y7689734')im2.save('stegtest.jpg')im1=Image.open('stegtest.jpg')s=stepic.decode(im1)printsdata=s.decode()printdata但是printS和printdata给我的值如下:6`或其他一