Advice on storing a password
I need my program to store a password, in a file. And the program is going to be open source.
So baring in mind the encryption algorithm will be easy to obtain, the security rests in the key. With this in mind I am unsure what the best option to use as the key would be, without the user entering a key. I considered using basic XOR on the password using the volume serial number as the key, but this does not seem good in the long term.
Any ideas on what a decent way to do this would be?