public static string HashPassword(string password)
 {
     return(SCryptAlgorithm.HashPassword(password, SCryptAlgorithm.GenerateSalt()));
 }
 public static bool Verify(string password, string hash)
 {
     return(hash == SCryptAlgorithm.HashPassword(password, hash));
 }
 public static string HashPassword(string password, ulong iterations)
 {
     return(SCryptAlgorithm.HashPassword(password, SCryptAlgorithm.GenerateSalt(iterations)));
 }