Steganography- Hide Your Files Inside An Image in Linux
Nowadays, our personal computer is not only a work tool, it is also our private space where we store our little secrets. Protecting our personal data from praying eyes should be one of our top priorities. People use cryptography or encryption to hide their data, but they forget that cryptography does not hide data from a third party, its goal is to make your data unreadable by a third party.
This is a big mistake that a lot of people make when they try to hide and protect their data from the praying eyes. I think this happens because they never heard about Steganography, the science of hiding information. In this article i will not discuss what steganography is in detail because it is not the purpose of this article but i will teach you how to hide your files inside an image. It sounds ‘sexy’, doesn’t it ? This method makes your data transferring more secure and it will make hard for third parties to understand what really you are transferring if they sniff your traffic. What do you need in order to hide your files inside an image ? Ok, you need a JPG image file, your files and a terminal window. The files i will use for this article are shown in Figure 1.
How to hide files inside the image ?
Before going further, create a zip archive of your files and open a new terminal window like shown in Figure 2.
Now it is clear that we want to hide secret_files.zip inside 9080221.010.1M.jpg image. We will use the Linux cat command which has different functions like displaying files, creating new ones and combining copies of them. The cat command will read the images file first, secret_files.zip and we will concatenate them together. After you have opened the terminal change directory to the directory where you have your files, mine are inside Desktop/articles, so i type cd Desktop/articles in my terminal and press Enter.
Make sure all the files are inside the directory by using the ls command which stands for listing all files and subdirectories inside a directory and copy your filenames inside a text document because you will need them in the next command. Time to hide my zip archive inside my image.
Simple Explanation of the command in Figure 4
- cat reads the image file
- cat reads the zip file
- cat concatenates the image and the zip file togeather in a new file, bugatti.jpg ( You can put any name you like)
It is the time to give our story a happy ending. Press Enter and a new file will be created. The new file is bugatti.jpg which looks like a regular image file but if we try to operate with unzip command on it , the unzip command will extract the zip archive that is inside the image.
After you have typed the command as shown in Figure 4 press Enter on your keyboard and the new file will be created, called bugatti.jpg.
The ls command lists all files inside my article directory and it shows a new file, bugatti.jpg.
The file that is important to us is bugatti.jpg because our secret files are inside this image so feel completely free to delete other files when you use this method. It looks like a normal jpeg file and it will open as an image, but when you use unzip command to operate on it, it will show us a message like shown in Figure 7.
Hehehe! Surprised ? Maybe not if you knew before about this method, but if you are a newbie to linux and Steganography you will enjoy it to the fullest and will fall in love with this method when it comes to choosing methods for hiding your private files. I love this method, because it is simple and a very good way to hide my personal data.
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- How To Show Username On Panel In Ubuntu 13.04/13.10 : By default usernames are not displayed on panel in Ubuntu 13.04 and 13.10, In this simple tutorial w...0 comments |
- cowsay And fortune Combined Together : Hi linux geeks! In this article I will teach you a nice trick you can perform in the terminal with ...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...0 comments |
- How To Install Netflix In Ubuntu : Hi unixmen readers! How are you? In this article we will teach you how to install the desktop vers...0 comments |
- How To Install Netflix In Ubuntu
- cowsay And fortune Combined Together
- How To Show Username On Panel In Ubuntu 13.04/13.10
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .