Steghide is a simple yet powerful steganography tool that lets you hide files inside images or audio files using a password. It supports BMP and JPEG images, as well as AU and WAV audio formats.
This can be especially useful if you want to send encrypted messages or keep personal data hidden inside a file.
Installation
To install Steghide on a Linux system, open your terminal and run:
sudo apt install steghideOnce the installation is complete, you can verify it by running:
steghide --helpThis command will display all available options and confirm that Steghide is installed correctly.
Embedding Data Inside an Image
For this example, I created a simple text file called secretpass.txt that contains some passwords. I'm going to hide this file inside an image called warcraft3.jpg.

To embed the file, use the following command:
steghide embed -ef secretpass.txt -cf warcraft3.jpg -p letmeinHere's what each part means:
-ef specifies the file you want to hide (in this case, secretpass.txt).
-cf specifies the image that will carry the hidden data (warcraft3.jpg).
-p sets the password required to extract the hidden file later. In this example, the password is letmein.

After running the command, your text file will be successfully embedded inside the image. The image will look completely normal, but it now contains hidden data.
Extracting the Hidden Data
To retrieve the hidden file, use the following command:
steghide extract -sf warcraft3.jpg -p letmein
Here's what's happening:
-sf specifies the stego file (the image containing the hidden data).
-p provides the password used during embedding.
If the correct password is entered, Steghide will extract secretpass.txt and save it to your current directory. You can confirm the file is there by running the "ls" command.
To open and view the file, run:
nano secretpass.txt
You'll now see the original content, in my case the secret passwords.
Conclusion
As you can see, hiding a file inside an image with Steghide is surprisingly simple. With a few commands, you can securely embed secret messages or sensitive data inside files.
I hope you found this tutorial helpful and easy to follow. If you have any questions, feel free to leave a comment.
Thanks for reading!