Пример #1
0
 public SaltedHashedPassword(string clearUnsaltedPassword, int salt)
 {
     Value = SaltHelper.ComputeHash(clearUnsaltedPassword, salt);
     Salt  = salt;
 }
Пример #2
0
 public static string GetHashedPasswordValue(string password, int salt)
 {
     return(SaltHelper.ComputeHash(password, salt));
 }
Пример #3
0
 /// <summary>
 /// Creates a SaltedHashedPassword object with a randomly generated salt,
 /// using the given clearUnsaltedPassword.
 /// </summary>
 /// <param name="clearUnsaltedPassword"></param>
 public SaltedHashedPassword(string clearUnsaltedPassword)
     : this(clearUnsaltedPassword, SaltHelper.GenerateRandomSalt())
 {
 }