I have 2 questions :
1) I plan to store some username and password and other information in text files, i need some advice on how I may encrypt the data through coding so that when someone opens the file, he/she would not be able to decipher wat's written.
2) Is there anyway to prevent a user from opening a file so as to prevent corruption to the contents of that file?