Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need a way to hide zip files in a file .

Example i have a , , contain data

I need to concatenates them in a new file called example.jpg.

Is there a way ?

share|improve this question

closed as unclear what you're asking by Braiam, guntbert, mikewhatever, Warren Hill, BuZZ-dEE Jan 30 '14 at 12:24

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

Hiding secret information in images is a topic of steganography. Some linux tools which deal with hiding information in images:

  • steghide (sudo apt-get install steghide)
  • stepic (sudo apt-get install python-stepic)
  • outguess(sudo apt-get install outguess)

Using steghide:

Steghide supports BMP and JPG images. To embed a file in a cover.jpg and make a new file for the embedded jpg use

steghide --embed -ef -cf cover.jpg -sf embedded.jpg

steghide will prompt for a password, type in one, this will be needed to recover the secret. After this you can view embedded.jpg just like a normal picture, you won't really notice that it is manipulated.

To recover the secret run

steghide --extract -sf embedded.jpg 

Type in the password and your secret will be recovered with its original name,

An important thing to know that an image can only contain a certain amount of secret data, since putting a lot of data into the image would need too much manipulations on the image and the image will be no more like the original. To view how much secret data can steghide embed in a certain image, run:

steghide --info cover.jpg

For other features of steghide look in man steghide.

With python-stepic you use these commands:

  • for embedding:

    stepic --encode -t -i cover.png -o embedded.png
  • for extracting:

    stepic --decode -i embedded.png -o

stepic uses the Python Image Library so it should work with most of the image formats, but png is recommended for the output image format by the authors. For more info on stepic go here.

share|improve this answer
up vote 1 down vote accepted

1. Open Terminal

2. Cd to the zips location (example : cd /test ) where i put them there .

  1. type cat > example.jpg

A file example.jpg is created , it seems to be corrupted but in real it contain the 3 zip files with there date .

You can now delete the files ( ,,

To extract them from the example.jpg :

unzip example.jpg -d /destinationyouwant

Hope it helps !

share|improve this answer
At first I thought that this wouldn't possibly work, but indeed, it does. unzip seems to process the archinve even if it is in fact multiple archives into a single one. – hakermania Jan 29 '14 at 1:00
sure, but what does the image look like? – Mateo Jan 29 '14 at 1:10
you do realize that anyone that ever heard of the "file" command can see through this? – Rinzwind Jan 29 '14 at 9:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.