Subscribe Us

Header Ads

Steganography | Method to hide a file in another file | Transferring data secretly (Windows And Linux)

Steganography

Steganography is the technique of hiding secret data within an ordinary, non-secret, file or message in order to avoid detection; the secret data is then extracted at its destination. The use of steganography can be combined with encryption as an extra step for hiding or protecting data.( First Definition of Google Search)


The Basic idea behind Steganography is to combine the binary code of two files and put it into a single file.

Suppose we have two files:
1.Any Image File (Let's name it 'name.jpg')
2.Compress your file to zip format: Let's Name it 'compressed.zip'

Now to put both file in single image 'name.jpg' , we will combine the binary code of both the files.

To do this:

1. Linux:
1.Open Terminal

2.change your working directory to the directory where both files are
3.Run following command

    cat name.jpg compressed.zip > secret.jpg

4.A new file result.png will have created
5.unzip your image with unzip command to get your files.

     unzip secret.jpg


Note: To Zip files in linux use following command:


zip archive-name.zip filename-1.ext filename-2.ext

To Unzip files in linux use following command:

unzip archive-name.zip 

2. Windows:
1.Open CMD
2.change your working directory to the directory where both files are
3.Run following command

    copy /b name.jpg + compressed.zip name.jpg

    Note: /b is used to copy in binary mode

4.Now your image 'name.jpg' size will have increased.
5.Open your image with zip extractor.
Note: Use WinRAR as zip extractor to avoid facing any issue.





Post a comment

0 Comments