(13) Avinash Kumar Sharma's answer to What can I learn/know right now in 10 minutes that will be useful for the rest of my life? - Quora

What can I learn/know right now in 10 minutes
that will be useful for the rest of my life? FAQ


Twitter • 11
Facebook • 61

Any trait, small trick, or lifehack; anything other than trivia or fact. Something one
can learn in 10 minutes or so (and perhaps with a bit of practice every day, excel
at) but it must be useful for the person for the remainder of his/her life.


Avinash Kumar Sharma
Web Developer, Designer, intere…
Follow 396




Please note that while someone's response may not be useful in your life, it can
be very important to someone else's.
Please stop trying to redirect this question and its answers. There is a difference
between 10 minutes and 5 minutes.Thank you!
EDIT: Please stop redirecting the question to totally unrelated questions.

Unfollow 34.2k

Avinash's Answer

Comments 172+

Share 2.9k


View 1621 Other Answers

Avinash Kumar Sharma, Web Developer, Designer, interested in art and
Upvoted by Mayank Jain, Mentor for IIT aspirants, Expert on learning techniques,
Ho… • Vishwash Singh

Hide any file inside an image file.
This a small steganography hack that is fun and sometime really useful, when
you want to send some file over internet, but upload of only image file are
allowed on that server.
First here is the definition of stenography from Wikipedia.
Steganography (Listen) is the art and science of writing hidden messages in
such a way that no one, apart from the sender and intended recipient, suspects
the existence of the message, a form of security through obscurity. The word
steganography is of Greek origin and means “concealed writing” from the
Greek words steganos (στεγανός) meaning “covered or protected”, and


What have you found on the Internet
today that made you smile?
it was during some ex am that i found
this picture, i smile ev ery time i read
What is the most hilarious meme or
cartoon you have come across?
Now I saw this way back but this
answer was just too good
Python (programming
language): What are some cool
Python tricks?
There are many to answer but I will
mention the one I use v ery often and
which sav es lot of time. It is
Rev ersing a s...



(13) Avinash Kumar Sharma's answer to What can I learn/know right now in 10 minutes that will be useful for the rest of my life? - Quora

graphei (γραφή) meaning “writing”.
In short, when you see the file it's just a normal image, but it has some hidden
message inside it, or in general it can contain anything, even a whole movie.
There are lots of tools available for this purpose, but we can do it using what
we already have just the command prompt in windows.
The requirement
The image file
The file to be hidden, the zip file
Command prompt
The image I will be using is this

and I want to hide a Ms word file and a Pdf behind this image, Select
both the file and send to a Zip file.
1. Place the zip file and the image in a folder , I am placing it on the desktop.
2. Open cmd(command prompt) and then go to the directory where both the



(13) Avinash Kumar Sharma's answer to What can I learn/know right now in 10 minutes that will be useful for the rest of my life? - Quora

files are. Like for example, in this case, it's "desktop". So you might need to
type cd desktop
3. Now type copy /b imagefilename + zipfilename [filename with
extensions], here is the image for clarity.

4. Now the size of the image will increase, what this is doing is simple, just
appending the second file to the first file and that /b is to specify that it is a
binary file.
Opening The file
After copying, the image file size will only increase, but it can be opened
normally and no difference will be seen except the size. To open the Zip file,
open this image with any Zip tool like 7zip, winrar, or winzip and you can
find all the files there, just extract it wherever you want.
Note: This technique is simple and quick but as you can see anyone with a
prior knowledge can easily find out. Although the benefit is that it doesn't draw
anyone's attention.
EDIT: Looks like some of you want to know how to reverse the whole process
and get the two files from the merged one. Although this can also be done
easily but requires little programming knowledge. I don't know if this can be
done in cmd but python can surely do this.



(13) Avinash Kumar Sharma's answer to What can I learn/know right now in 10 minutes that will be useful for the rest of my life? - Quora

Getting the files back.
As we just concatenated two files we can separate the files if we know any one
file's size.
1. Get all the files inside the zip by opening the image with 7zip/winrar and
extract them, We have all the files inside zip now. Send these file to zip
again.We have the original zip reconstructed again. Note down its size in
bytes by seeing its properties.Suppose the size we get is 399 bytes.

2. Now run this python script:






Ask Question

1import os
2s = os.path.getsize('emma.jpg');
3with open('emmaoriginal.jpg', 'wb') as f:

with open('emma.jpg', 'rb') as fold:


f.write(fold.read(s - 399))

This code assumes that the zip file size is 399 bytes, emma.jpg is the image file
which has the hidden zip file and emmaoriginal will be the new image file that
will be created, and the script file is in the same directory as the files.
This will give the file of the picture without zip. This again is just a quick
solution, but not the best as you can see I am reading the whole file in the
memory. For files with big size this won't work well.
Updated 24 Jun, 2014
Upvote 4.3k

Downvote Comments 23+

Share 95


Top Stories from Your Feed
Ankur Warikoo upvoted this • 14 Jul

What are the examples of the

Top content on Quora

How does Whatsapp make


Twinkle Rastogi

Don van der Drift and 1

more upvoted this • 19 Jul


(13) Avinash Kumar Sharma's answer to What can I learn/know right now in 10 minutes that will be useful for the rest of my life? - Quora

worst feeling ever?
Bharath Srinivas, Freedom
Hearing an elder person calling you
Sir/Saheb just because he is in a low paying
job and he is obliged to do so. (I am referring
to India here, I do not know about other
Hurts to the core :(

money? Especially in India
Yogesh Vaishnav, An engineer by
experience not by education!
Companies providing 'free' service on
internet are categories as Data Mining
companies. When they provide you a free
service, you are their product. And they sell
you (as a product) to other compan...

Updated 9 Jul

Read In Feed

Read In Feed


What are some of the crazy firsttime-parent things you've done
for your first born that you did
not subsequently do for the
next one(s)?
Ashley Thomson, Dad to three little
boys within 3 years
Upvoted by Daniel Kinzler, 3 daughters

When baby #1 eats dirt you take him
straight to the hospital. When baby #2 eats
dirt you clean his mouth out and tell him it's
not good for him. When baby #3 eats dirt
you wonder whether
Read you
In Feed