As NOBODY is using python2, so. A python3 version of cloacked-pixel.
Follow these shell commands:
# clone this repo to local
git clone https://github.com/Grazee/cloacked-pixel-python3.git
# install python3 dependencies
pip3 install -r requirements.txt
To hide data or file into an image:
python3 lsb.py hide -i [img_file] -s [payload_file] -o [out_file] -p [password]
For example, hide secret.png
into origin.jpg
with password 1234567
.
python3 lsb.py hide -i example/origin.jpg -s example/secret.png -o stego.png -p 1234567
The command above will generate a new file named stego.png
.
To extract data or file from an stego image:
python3 lsb.py extract -i [stego_file] -o [out_file] -p [password]
For example, extract secret data from stego.jpg
with password 1234567
, and save those data as file secret.png
:
python3 lsb.py extract -i example/stego.png -o secret.png -p 1234567