Hello! Ever heard something called steganography? Ever realize that you can hide an Image behind an Image? Well, that's what this python script does! By it's definition, Steganography is the practice of representing information within another message or physical object, in such a manner that the presence of the information is not evident to human inspection. 💻
Now, what can steganography even do? First of all, MANY THINGS! Example, if you feel like a troller😅, just as I do. You can hide a random images, while the image being covered with something. Or, take an instance where you want to share a peice of information to other people, you can hide the information through an image, although your friend should have the steganography tool aswell.
And if you still don't know what it does. Why don't you have a try? It's really simple to use. 🚀🚀🚀
- Steganography tool: This Python script allows you to combine an image with other image, or simply, hide a piece of text within an image. Often used for sharing something in a way that is not evident to human inspection.
Imgcrypt.bat
usage: imgcrypt [-h] (-t | -i) (-e | -d) [-o OUTPUT]
Hide/Reveal an Image or Text on an image.
optional arguments:
-h, --help Show this help message and exit
-t, --textXimage A steganography technique that hides a Text in an Image
-i, --imageXimage A steganography technique that hides an Image in an Image
-e, --encode Encode an image
-d, --decode Decode an image
-o OUTPUT, --output OUTPUT Output file name
- Clone the repository:
git clone https://github.com/DaemonPooling/Python-steganography-CLI.git
- Navigate to the Project Folder:
cd Python-steganography-CLI
- Install Dependencies:
pip install -r requirements.txt
- Navigate to the Project's source:
cd source
- Run imgcrypt.bat:
imgcrypt -h
If it doesn't work, run this instead
python run.py -h
As for your exercise. You can try to Decode a files in exercise/Image2Image.example
and exercise/Text2Image.example
Your target is to decode a file in exercise/Image2Image.example/Final image (with hidden image).png
. To start off, simply follow this instructions!
- Open your CMD (I assume you are on the Project folder, if not, go to the Project folder first.)
- In your CMD, run this command line.
imgcrypt -i -d -o "Decoded image (you can change this whatever you want)"
or
python run.py -i -d -o "Decoded image (you can change this whatever you want)"
-
If done, check the
Decoded image (...)
you got! And tell to yourself what you get
Just like in the Image2Image section, but this time. I want you to do it by yourself. I want you to decode Final image (with hidden text).png
this time! If you still don't know how, you could check hint!
Hint
Just like in Image2Image. Just run this bash code!
imgcrypt -t -d -o "Decoded text"
or
python run.py -i -d -o "Decoded image (you can change this whatever you want)"