Is there any way to protect the text file. I want to protect my text files to protect with password. So how is it possible that when client wants to open the text file it asks for password and files can be opened in notepad only after entering the right password. By using this can be make our files secure
Asked
Active
Viewed 6,619 times
-2
-
What have you tried? Which is your traget programming language? And which is your target platform? – rekire Nov 24 '12 at 11:55
-
Encrypt it, and use a password to derive the key. But a straight forward implementation wouldn't support opening with notepad, only with a specialized program. Alternatively you can use disk encryption software, such as truecrypt. – CodesInChaos Nov 24 '12 at 11:55
-
i have to read back the html file using java so decryption will be implemented using java and i am trying to build it for windows. – adesh Nov 24 '12 at 12:03
-
If you want to interoperate with existing software like Notepad, you'll need an encrypted file system, like a TrueCrypt volume. This isn't a programming question though. – erickson Nov 24 '12 at 20:23
1 Answers
0
Zip it and password protect the entry :) full compatibility with any PC and decent security :) (Zip ueses AES to pretect it's entries).

damiankolasa
- 1,508
- 9
- 8