Пример #1
0
 /// <summary>
 /// Hashes raw password with MD5, SHA256, and BCrypt.
 /// </summary>
 public static string HashRaw(string password)
 {
     return(BCrypt.HashPassword(RawToMD5SHA256(password), BCrypt.GenerateSalt(BCryptStrength)));
 }
Пример #2
0
 /// <summary>
 /// Hashes password coming from the client with BCrypt.
 /// </summary>
 public static string Hash(string password)
 {
     return(BCrypt.HashPassword(password, BCrypt.GenerateSalt(BCryptStrength)));
 }