Beispiel #1
0
 public string HashPassword(string password)
 {
     return(BCrypt.HashPassword(password, BCrypt.GenerateSalt()));
 }
Beispiel #2
0
 public static string GenerateSalt()
 {
     return(BCrypt.GenerateSalt(10));
 }