I need to "password protect" my application but need advice on where to store the password securely.
How I intend to do this:
The first time the program is run, I will prompt the user to create a password. The password will be salted and hashed in SHA-256 then stored in either the Registry or a file.
The Problem:
If I store the hashed password in the registry or a file (or both) then it would be too easy for someone to just delete the Key in the Registry or the File and be prompted to create a new password...
How can I securely store the hashed password so that it makes it harder to be deleted?
I have thought about storing it in the Registry and also creating a file with the Hidden and System Attributes to read from in the event of the Registry file being deleted but this seems silly as it could also be deleted quite easy.
// I hope I have posted this question correctly with the right Tags - I am new here so please go easy! ;)
All the best
Chris (Shamballa)