public static bool ValidatePassword(string password, string hash) { var isValid = PasswordHash.ValidatePassword(password, hash); return(isValid); }
public static string HashPassword(string password) { var saltedHash = PasswordHash.CreateHash(password); return(saltedHash); }