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