Well, there are at times when you need to hide files from someone. Say, a text file which has some important data that you need to hide from everyone. So, this post will teach you how to hide text in an image.
Now, open notepad and give two lines space and then write anything you would like to make secret like given in the below image:
Now, take an image. I’ll use Tech2Hell’s logo.
Make sure to keep the image and text file in the same directory.
Now all you need is a command prompt window. So go to Start-> Run-> type “cmd” and press enter.
Navigate to the folder where your files are stored using “cd” command.
Now type the following command:
copy /b Image.jpg + Text.txt Output.jpg
Where, Image.jpg is the name of your image file and Text.txt is the name of your text file. Give a space between [Image.jpg + Text.txt] and [Output.jpg]
Output.jpg is the name of the file that will be created after you run this command.
Make sure that Image file name comes first and then the text file name after copy /b. Doing the opposite will not work.
Now, press enter and you’ll see an Output.jpg file that will get created in that same directory. You could now open the image, the image will open normally. Now the trick comes, open the Output.jpg file with notepad and you’ll see something like this:
Now, scroll down to the end and you’ll see the Text that you wanted to hide. It will look something like this:
The same thing can be done using a windows batch file.
And then you just found a way to hide your secret content in an image.
Now, lets do the same thing using a windows batch file:
To make a batch file:
Open notepad and write the following code:
copy /b Image.jpg + Text.txt Output.jpg
Where, Image.jpg is the name of your image file and Text.txt is the name of your text file. Give a space between [Image.jpg + Text.txt] and [Output.jpg]
Output.jpg is the name of the file that will be created after you run this batch file.
Save the notepad file as ImageHide.bat
Double click on the batch file to create Output.jpg. And, now you’ve also learnt to hide the text in image using the windows batch file.
Enjoy HIDING!
If you Like this post? Follow us on Twitter @imacify and Like us on Facebook. To Get Regular Updates Subcribe Our Feeds.
It’s called Digital Steganography, and is used by terrorists!
Terrorist. Funny 🙂 They may…
Yes, to some extent you’re correct. But “TERRORISTS” use encryption and the text is not clearly visible when you try to drag the image onto the notepad. In our case, it was just a simple command prompt trick that combined two files using the “/b” switch of the copy command. There are some softwares too that can help you to hide text in an image. Google about them and you might get to more about them. Thanks 🙂
/b makes the file into binary format then rearrange the nature of the file to wat we we mention… thats why we need /b. simple and effective
hmm… i learnt this in a workshop on hacking, don’t have much knowledge about this…anyways, thanks for the info!
You are welcomed 🙂 Thanks for Your comments. Hope to see you Here Soon 🙂
I’m quite sure terrorists aren’t stupid enough to use this kind of encryption. They’re probably a little more advanced than we think..:-D
Thanks for your comment
this is a great post..easy way to make cryptic message in images.
Hey there is an another way of this same syntax.
copy /b filename1.ext + filename2.ext filename3.ext
ex:
>start cmd prompt.
>locate current working directory.
>copy /b apple.jpg + many pictures.rar tada.jpg
> make sure that so many .jpg , .mp3 are compressed by rar.
> then do as above.
> to reveal the rar content(archive of collection wat we made) just drang and drop in rar.
>then extract to view the content.
{It is a very simple code but much more efficient}
Ya, but say if your image’s size is in KBs and your rar file size in in MBs then the output image will be in MBs and one can easily make out… 😀
nice trick.will try it..i think this may be even called as cryptorgraphy..
yes it is.. thanks for your comment
Thanks Sumanth. Yes, exactly. You can call it cryptography as crypto deals with hiding something and this too accomplishes the same thing. There are also other tools which helps you to do the same thing.
Pingback: Siege » Blog Archive » pictures to txt
Pingback: Push» Blog Archive » txt pictures
how to navigate
if my file is in d hard drive
any one please tell this
Really nice trick. Thanks a lot for sharing =]
Welcome
hi..
i found it interesting and followed the same thing and got the result, but the thing is i can’t able to save a pic or image file, whenever i do it it get saved in .txt format. how shall i reverse the process which i have done previously.. please give me a solution.
I think you have done it wrongly.
i have tried its usable………………….but i want to know can we change the location of the text from top or in the middle………………….pls some body help me with the same………….
Really very interesting..Keep posting.
Thanks for your comment Santhosh
We can open the image with Textpad/Notepad++/ Notepad & put the text directly to the bottom of the binary texts and save it.
Hi friend.. this trick is awesome.. but i need to know “hide texts in patch file”.. if u know kindly let me know.. thanks
Interetsing information , never heard of this earlier
Wow…that’s surely an interesting trick. I’m sure this is going to be very useful.
its nice tnk u
KEEP ON GOING
to goto your c: directory type
cd \
this is great, ive created a batch program that includes this then it saves to a folder which gets hidden an only visi le by typing password in batch file.
Neat little trick. Just remember that it’s not the same as the text being encrypted, and it’s definitely not a secure way of hiding data.
How would you make this code do the merging of the text to every picture in a folder without manually putting in the image name? I have tried copy /b *.jpg + secret.txt but it only does the first image.
Any Ideas?