예제 #1
0
파일: Password.cs 프로젝트: Vinna/aura-old
 /// <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
파일: Password.cs 프로젝트: Vinna/aura-old
 /// <summary>
 /// Hashes password coming from the client with BCrypt.
 /// </summary>
 public static string Hash(string password)
 {
     return(BCrypt.HashPassword(password, BCrypt.GenerateSalt(BCryptStrength)));
 }