title: Store a Password Securely
body: <p>I need to "password protect" my application but need advice on where to store the password securely.</p>
  
  <p>How I intend to do this:</p>
  
  <p>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.</p>
  
  <p>The Problem:</p>
  
  <p>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...</p>
  
  <p>How can I securely store the hashed password so that it makes it harder to be deleted?</p>
  
  <p>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.</p>
  
  <p>// I hope I have posted this question correctly with the right Tags - I am new here so please go easy! ;)</p>
  
  <p>All the best</p>
  
  <p>Chris (Shamballa)</p>