Originally Posted by
bithub
Well security is a pretty advanced topic, but there are some things you can do to get some light, simple security.
For instance, instead of storing a password in a file, store a hash of the password in the file. Then when the user enters in a password, your application will hash that password, then check to see if the hash matches the one stored in the file. This way a user cannot just open the file to read the password.
The problem with that is that a dedicated abuser could read your hash from the file, then generate a password that matches the same hash.