Total Pageviews

Sunday 16 April 2017

一个基于python的简单加密/解密工具:simple-steganography

A simple python steganography tool. Make sure to install pillow via pip! Python 2.7 or 3.4 

to encode

python (or python3) ss.py encode original.png "hello you!"

to decode

python (or python3) ss.py decode out_original.png
#Installing PIL (Python Imaging Library)

Requirements

pip install Pillow
Any problems installing PIL?
sudo easy_install pillow


Mac: Python 2.7 sudo pip install http://effbot.org/media/downloads/Imaging-1.1.7.tar.gz
or (easier) Python 3.x pip3 install pillow

Linux:
apt-get install python-dev;
apt-get install libjpeg-dev;
apt-get install libjpeg8-dev;
apt-get install libpng3 ;
apt-get install libfreetype6-dev;
ln -s /usr/lib/i386-linux-gnu/libfreetype.so /usr/lib;
ln -s /usr/lib/i386-linux-gnu/libjpeg.so /usr/lib;
ln -s /usr/lib/i386-linux-gnu/libz.so /usr/lib;
pip install PIL  --allow-unverified PIL --allow-all-external


Windows: https://github.com/lightkeeper/lswindows-lib/blob/master/amd64/python/PIL-1.1.7.win-amd64-py2.7.exe?raw=true
or
get Pillow source from Pillow repository unpack and run python setup.py install

from https://github.com/jamesacampbell/simple-steganography

No comments:

Post a Comment