Monday 2 February 2015

How To Hide A ZIP File Inside An Image On Mac

You will need an image file, and all the files you want to hide zipped in a ZIP file. For this example, we will use a nyancat image named image.png to be our cover. The tip works with JPG and GIF files too.

Our ZIP file is named secret.zip. We will be hiding this in image.png. Here’s how

Prepare Image

First, make sure these files are on your Desktop. Open up Terminal. Type in the following command, then press Enter.
cd Desktop
Next, type in the command below and press Enter:

cat image.png secret.zip > image2.png
Once the command is used, a third file will be created on your Desktop called image2.png. This PNG file carries secret.zip within it.

Image Created
To prove this, notice that change in file size for image.png (12 KB) and image2.png. (20.3 MB). You can access this information by right-clicking on the file and clicking Get Info.
Get Info

The image2.png file behaves like a regular PNG file. If you try to open it, it wil pop up in your default photo viewer.

Image Preview

In order to unzip the hidden zip file, you will need to use Terminal. Use the following command to unzip the file:

unzip image2.png
The ZIP file within image2.png will then unzip its contents where the image is located.

Image Unzip

Keep Visiting

No comments:

Post a Comment