Updates

Saturday, 28 January 2017

Use Steganography to hide data in images - Kali Linux

Use Steganography to hide data in images


Many of you already know about Steganography. Those of you who don't know about steganography it's an art of hiding secret data in any data file like images, audio, video files etc. Let's have a look at what Wikipedia say about Steganography.

According to Wikipedia

Steganography is the practice of concealing a file, message, image, or video within another file, message, image, or video. The word steganography combines the Greek words steganos (στεγανός), meaning "covered, concealed, or protected", and graphein (γράφειν) meaning "writing".
In today article I am going to use hide a text file inside an image file. For this purpose, I am going to use a tool called "StegHide". Steghide support various image types.We can also use StegHide to hide data in audio files.

Let's start with the tutorial.

1. Downloading tool

  • This tool can be downloaded from SourceForge if you are using windows.
  • If you are using Linux use the following command to install.
 sudo apt-get install steghide

2. Hiding a text file inside an image file

  • Create a folder and move image and text files to the folder.
  • Open Terminal and paste the following command and press enter.
steghide embed -cf r.jpg -ef s.txt
  • Replace r.jpg and s.txt with names of image and text file you are using.
  • After you run this command you will need to enter a passphrase which will lock your like so no other can open it without your permission.

  • You have to enter the same passphrase two times, now you have encrypted a text file inside an image. 

3. Extracting hidden data from image file

  • Open the terminal and change the directory to the folder where you have saved your image file.
  • Now type the following commands to extract the text file.
steghide extract -sf r.jpg
  • Replace r.jpg with your image file name.
  • After entering the command you need to enter the passphrase to extract the text file.

So this was the tutorial on hiding data inside an image file.You can also use audio file also. Hope you guys like the tutorial.

No comments:

Post a Comment

Share your problems but don't spam here