I am making a C#.NET application wherein I have designed an Administrator account. Now to Login in that account the Administrator has to enter the password.
My Ques
You can store it salted and hashed in a user settings file.
You can access the default settings file using something like:
private bool CheckPassword(string salt, string password)
{
var hash = Encoding.ASCII.GetBytes(salt + password);
var sha1 = new SHA1CryptoServiceProvider();
var sha1hash = sha1.ComputeHash(hash);
var hashedPassword = ASCIIEncoding.GetString(sha1hash);
return (Properties.Settings.Default.adminPass == hashedPassword);
}