What is Steganography? How to Hide Text Message Behind an Image?
What is Steganography? This term is originated from Greek word; steganos means “covered” and graphien means “writing”. It is a process of hiding a secret message within ordinary content, generally images, text and then extracting the messages when it reaches the destination. Anyone who finds these images or text won’t realize that there is hidden message or content.
In steganography process, the data is first encrypted & then inserted in the normal the normal content, using special algorithm which may modify the contents of the file. Steganography technique usually appends the data to a file, and some sophisticated steganography techniques may even disperse it throughout the file.
Program uses specially crafted algorithm which places the encrypted data in such a way that a unique pattern emerges (not visible to other programs, except it).
Common Hiding Techniques:
- Appending data to a file.
- Hiding Content in the unused header portion of the file near the beginning of the file contents.
- Algorithm based dispersing of hidden message throughout the file.
- Modification of LSP (Least Significant Bit).
Table of Contents [Quick Links]
Significance of Steganography!
- Corporate world uses Steganography for disguising espionage attempts.
- It is assumed that terrorist group makes use of Steganography to secretly communicate internally.
- And who knows, secret services and army uses the same.
Tools used for Steganography!
There are numerous tools used for steganography:
- S-tools for hiding data behind GIF & JPEG
- StegHide for hiding data behind WAV and BMP
- Invisible Secrets for hiding data behind JPEG
- Hiderman and many more!
File extensions bmp, jpeg, gif, wav and mp3 are generally used to carry hidden messages.
How to Hide Text Message in an Image using CMD!
Now, we’ll be hiding our text message behind an image using CMD (command prompt). This is the very basic example of steganography (Appending data to a file) and the best you can do right now.
- Arrange a file (in our case it’s image.jpg) and a text message file (in our case it’s text.txt).
- Open the command Prompt (Press Window Key+R then type CMD).
- Locate the path to your files (in our case it’s \DESKTOP\STEGNO).
- Type the command COPY /B image.jpg + text.txt newfile.jpg
- Done! Newfile.jpg contains your hidden message.
Note: If you understand DOS commands a little bit you can simple use the command ECHO “Steganography Hidden message here” >> image.jpg. This DOS command will simple echo or write your text message inside the file.
How to reveal hidden text message from image? You just have to open your steganography’s image file in a text editor like WordPad, notepad etc. (refer to the video).
What is Steganalysis? What are the tools Required?
Steganalysis is a study of identifying existence of hidden messages behind commonly used carrier files, the historical meaning of steganalysis means revealing the data, but in the modern world we usually use it while digitally hiding the data.
In simple words, steganalysis deal with the hidden content and identifying its existence.
Methods used for the detecting the use of Steganography:
- Statistical Analysis
- LSB Analysis
- Noise floor Consistency Analysis
A few words on Steganography, There is a lot more to be learned in both Steganography and Steganalysis. You have just seen a very-very basic example which is in no way used in real world for any purpose. As the above method of steganography provides next to no real security, don’t use it in real world for confidential purpose.