Download Article
A simple guide to hiding words and characters in an image file
Download Article
Hiding text within an image file is one of the tricks used in Steganography. Using this trick you can hide any text information or a message within an image file irrespective of the fact that how long your information or message is. So, lets see how to do it. Follow the steps below.
Steps
-
Choose an image file. For example: XXX.jpg
-
Place this image in one of the drives in your computer system (running on Windows operating system only). Lets say you place it in
\:D
drive.Advertisement -
Open command prompt. (Press Windows+R , type 'cmd' and press 'Enter' key)
-
Type following command:
cd..
and press 'Enter' key. Repeat this step until you left withC:\>
on your command prompt window. See this image: -
Now, type
D:
and press 'Enter' key. See this image: Now, your command prompt is able to locateD:
drive. -
Type following command very carefully:
echo "Type your message here" >> "XXX.jpg"
and press 'Enter' key. Do mind the spaces given and braces I put in the command. See this image: -
If everything went perfect, Your text has been hidden within the image file XXX.jpg.
-
In order to see the hidden text, Right-click 'XXX.jpg' image file and open it with 'Notepad'. You'll see something like shown in this image: This is actually your image information in encrypted form. You've nothing to do with this.
-
Simply, scroll down to the end or just keep pressing 'Page dn' key.
-
Here you're! You can see the text (you typed in Step 6) in simple readable form in the end. See this highlighted text in the image: You can check this is what I typed in the image shown in Step 6.
-
Advertisement
Community Q&A
Search
-
QuestionHow do I put a quotation mark in the message?Community AnswerA backslash "\" will cancel out any other functions a character may have other than plain text when typing in any kind of command line. So, say you wanted to make it read "My mother said "Do your chores!"", you would type it like so: "My mother said \"Do your chores!\"", and the \ before each " will work.
-
QuestionWhen I tried this out, the image was unaffected but when I wanted to edit the words the image would become corrupt. How do I delete words safely from the image?Community AnswerIn your case, I think that zip files are better for this method because of the structure of zip files and image files.
-
QuestionWhen I open hidden text from an image sent to me in Notepad, it looks like a bunch of characters, letters, symbols, etc. How do I sort it out to read?ArroganceTop AnswererAs the article says, you're expected to scroll down to the bottom of the file, either with the scrollbar or the Page Down button. Because you're simply concatenating unpredictable plain text, and not a file type with specific headers, like zip or rar, there's no simple way to filter it. If you standardized the beginning of a line with something predictable like "MESSAGE: Hello! ", you could filter it in the Command Prompt with 𝐟𝐢𝐧𝐝𝐬𝐭𝐫 "𝐌𝐄𝐒𝐒𝐀𝐆𝐄:" 𝐢𝐦𝐚𝐠𝐞.𝐣𝐩𝐠
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Tips
- You can send this XXX.jpg image file over internet to your friend as well. He can also read the text you hide.Thanks
- Image will work just like any other normal .jpg extension image file. This trick won't affect image properties in any means.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
Warnings
- This trick only works on computer systems running on Windows platform.Thanks
- You may need administrative privileges in order to run command prompt so, you better log in as an administrator.Thanks
- Do mind the spaces given in the command and also the put braces in as shown.Thanks
Advertisement
About This Article
Thanks to all authors for creating a page that has been read 138,120 times.
Advertisement