Beispiel #1
0
 public void Add(User user)
 {
     user.Password = Sha1Helper.HashPassword(user.Password + Constants.Salt);
     _repository.Add(user);
 }
Beispiel #2
0
 private string HashWithSalt(string source)
 {
     return(Sha1Helper.HashPassword(source + Constants.Salt));
 }