コード例 #1
0
 public static string HashPassword(string password, ulong iterations)
 {
     return(SCryptAlgorithm.HashPassword(password, SCryptAlgorithm.GenerateSalt(iterations)));
 }
コード例 #2
0
 public static string HashPassword(string password)
 {
     return(SCryptAlgorithm.HashPassword(password, SCryptAlgorithm.GenerateSalt()));
 }
コード例 #3
0
 public static string GenerateSalt(ulong iterations)
 {
     return(SCryptAlgorithm.GenerateSalt(SCryptAlgorithm.DefaultSaltLengthBytes, iterations, SCryptAlgorithm.Default_r, SCryptAlgorithm.Default_p, SCryptAlgorithm.DefaultHashLengthBytes));
 }