Choice of tools
Steghide: Is an open-source, command-line software that can encode and decode data into image files
- compression of embedded data
- encryption of embedded data
- embedding of a checksum to verify the integrity of the extracted data
- support for JPEG, BMP, WAV and AU files
apt-get install steghide
Creating an image with a secret message in it.
Create a folder with the name of your choice:
Create a new text files with some text. – This will be the secret that we want to embed in the image of our choice.
echo "They Screct message" > secret_msg.txt`
Download or use an image of your choice to hide the secret message
For this example we used his test image that you can download it using wget , and experiment on it, or you can choose your own.
Hide secret message in image and create a new encrypted file
steghide embed -cf PjtSBur.jpg -ef message.txt -sf secret.jpg
This command will embed the file message.txt in the PjtSBur.jpg and create a new encrypted image, secret.jpg (stego file).
- Embed: embed data
- -cf: cover file
- -ef: embed file
- -sf: output file – stego file
You can also choose between different encryption algorithms and compression levels. See the user manual of steghide with:
It will prompt you to enter a passphrase needed to then later extract the message.txt from the secret.jpg image.
Enter a passphrase and re-enter it for confirmation
View info or the embedded data
You can get some information before extracting the stego file. To view the encryption algorithm, file size, and the embedded filename/secret message filename using the command below:
steghide info secret.jpg
Retrieve information of the embedded file (stego file)
The way to decode and reveal the secret message embed in the stego file. Make sure to rename or remove the original message.txt from the working folder when performing this command.
steghide extract -sf secret.jpg
Stegosuite: Is a graphical interface steganographic tool written in Python for hiding data/extracting data them from images and more features.
sudo apt-get install stegosuite
Run stegosuite: type
stegosuite in terminal it will start the GUI version of steghide tool.