Click here to Skip to main content
Click here to Skip to main content

Tagged as

Hiding Text in Notepad

, 25 Jun 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Hiding Text in Notepad
Have you ever tried to Hide text in a regular Windows Notepad….!
 
Yes, there is a possibility to hide some text in a Regular Notepad, but it seems to be working on only few versions on Windows, probably on Windows XP SP2.
To hide text in a Notepad, all what you need to do is, just open up a command prompt and type the command as given below,……
 
C:\notepad secret.txt:hidden.txt
Then it will open up a new Notepad file, and prompt whether to create a Notepad file with the name secret, go ahead and click on ‘yes’., then the title of the Notepad file will change and you may see the changes in the title bar of the Notepad. Now type whatever you want there, according to your wish and go ahead and click on the X on the right extreme end on the Notepad window (Close), then it prompts whether to save the file or not, click on ‘Yes’. Then just type the “DIR” command to view whether the file has been created, it must be there and now go to the location where you saved the file and try to open it up, It will open but it will not display any text in it, instead, it will display a blank Notepad File….! :-
 
In order to view this Hidden text in this Notepad File, just again go to the same command prompt and then type the same command that you have typed to create the file, as below….
 
C:\notepad secret.txt:hidden.txt
 
Now you will view the text what you typed there….!, also if you go ahead and check with the file size, it always seems to be 0KB, sometimes 1KB, and it will not cross these two filesizes, but you can type the contents upto MBs and so on…!
Anyway, if someone came to know about this, they can easily open this file by using this simple command.

Don’t worry, here is another way to hide the text in the same Notepad application, but it would differ a bit from the previous one, and here in this method you will give a password to open up this file.
In order to perform this Hack, just open up a new command prompt and type the command as given below,….
 
C:\echo This is a secret File created by Cybercrawler…..! >crawler.txt:pa$$wd
C:\
 
Seems to be a simple echo command, is it so?
 
But it will make this text hidden.
 
Once you have entered the command, just type the “DIR” command to check whether the file has been created, it will be there. and here it will create a new Notepad file with the name “crawler”.
And now try to open the file in a normal way, it will open but will be a blank file and nothing will be displayed there, in order to view the text that you typed there, you need to enter another command as below:
 
C:\more <crawler.txt:pa$$wd
 
Once after typing this command, it will display the text that you typed over there, like below…..!
 
This is a secret file created by Cybercrawler…..!
and the exact output would be like this,………
C:\>echo This is a secret File created by Cybercrawler…..! >crawler.txt:pa$$wd
C:\>more <crawler.txt:pa$$wd
This is a secret File created by Cybercrawler…..!
In order to hide your own text, use the same syntax,
 
C:\ echo Text >Name.txt:password
where,
echo - Command
Text - Text you want to Hide
Name - File name
password - password
and to open up the file and view the hidden text, the syntax would be:
 
C:\ more Name:password
where,
more - Command
Name - File name
password - password
 
The first method is not password protected, but the last one is password protected.
 
Try it yourself and hide the text like this. To hide text in a Notepad, all that you need to do is just open up a command prompt and type the command as given below:
 
C:\notepad secret.txt:hidden.txt

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Harmanjeet Singh
Student
India India
No Biography provided

Comments and Discussions

 
GeneralAs BillHudson explains this is using a feature of NTFS calle... PinmemberMember 423598327-Jun-11 23:17 
GeneralThis is actually using NTFS file systems Alternate Data Stre... PinmemberBillHudson27-Jun-11 18:12 
Generalpassword stuff is not working on my machine. Pinmembercode in play23-Jun-11 2:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 25 Jun 2011
Article Copyright 2011 by Harmanjeet Singh
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid