tonybaldwin | blog

non compos mentis

Co0l Linux trick: Hide files in an image

leave a comment »

Here’s a cool trick I just learned.
You can, in a gnu/linux system, hide files within an image file.
Why you might want to do so, of course, is open to speculation, but the “how” is really rather simple.

  1. Choose an image file, any image file. For this example, I will choose a wallpaper I made, say, debianolive.png. Copy this image to a directory with the documents you wish to hide.
  2. Compress the files or documents you wish to hide. This is simple enough. In terminal do:
    :~$ zip file1 file2
  3. Then, in terminal, simply do:
    cat debianolive.png > debianolive.png

All done.

This creates an image with the name “debianolive.png”, which contains our documents.
When we wish to retrieve said documents, we rename the file to
:~$ mv debianolive.png
Then unzip:
:~$ unzip
and you have your files back.

Handy! Nifty!



Written by tonybaldwin

August 11, 2010 at 10:01 pm

Posted in free software

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: