Hey,

For a program that I'm creating, it is necessary for the user of the program to create a profile, which includes a username and a password. Thing is, the password is being stored in a flat file, so obviously that brings up some security questions.

My question to everybody is this: is there a way to collect user input and (either using an algorithm to encrypt it, or some other way) store it in a file so that another user would not be able to just open the file and see the password?

Thanks!

FlyingIsFun1217