How to setup passwords for .txt files | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to setup passwords for .txt files

I want to do it because i have created a java program which stores data in a notepad and i dont want any other person to access that file other than the program

17th Mar 2019, 10:01 AM
Rajb957
Rajb957 - avatar
3 Answers
+ 5
You can't prevent users from editing files which are on *their* computer. You can, however, encrypt or obfuscate your data before storing them into a text file.
17th Mar 2019, 10:26 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
How can I encrypt in a manner other than Morse code or monoalphabetic cipher
17th Mar 2019, 12:07 PM
Rajb957
Rajb957 - avatar