Пример #1
0
 private string HashPasswordWithUserSalt(string password, IHashing hashing)
 {
     return hashing.CreateHash(password, GetUserSalt());
 }
 public bool PasswordIsValid(string password, IHashing hashing)
 {
     return hashing.CreateHash(password, Created) == PasswordHash;
 }