How to hide any files in an image file

This is a simple method to hide any kinds of files in an image file. This method can be apply to any kinds of image format. Ex. JPEG, GIF, BMP, PNG, etc. This method works in Windows or Linux operating systems (O.S.) platforms. This post will show you how to do this on both Windows and Linux O.S. platforms.
Windows
To hide:

  1. Compress files to any compressed archive. (zip, rar, tar, 7z, etc...).
  2. Copy the compressed file/files and the image file into a folder.
  3. Run a Windows command prompt.
  4. CD to the folder.
  5. Execute this command to hide the files into an image file.
copy /b initial_img_file+archive_file new_img_file
initial_img_file = this is the initial image file that does not have any archive hidden inside.
archive_file =  a compressed archive that stores your files that you want to hide.
new_img_file = this is a new image file that will have the archive hidden inside.

Example:
copy /b abc.jpg+archive.zip xyz.jpg
To extract hidden files:
Use any file compression software (WinZip, WinRar, 7zip) to open the image file. The software will recognize that the image file have a compressed archive in it. It will open like a normal archive file and files can be extracted out easily.


Linux
To Hide:

  1. Compress files to any compressed archive. (z, gz, tar, tar.gz, 7z, etc...).
  2. Copy the compressed file/files and the image file into a directory.
  3. CD to the directory.
  4. Execute this command to hide the files into an image file.
cat initial_img_file archive_file > new_img_file
initial_img_file = this is the initial image file that does not have any archive hidden inside.
archive_file =  a compressed archive that stores your files that you want to hide.
new_img_file = this is a new image file that will have the archive hidden inside.

Example:
cat  abc.jpg archive.gz > xyz.jpg

To extract hidden files:
Treat the image file like an archive file. Using the example above you can simply:
gunzip xyz.jpg

Comments

Popular posts from this blog

City Code Table for Casio SGW300HD-1AV Watch

How to force only 4G or LTE network connection for Samsung Galaxy Note 4

Mounting NFS share directory from D-link DNS 320L on Ubuntu 12.04 LTS