Ejemplo n.º 1
0
 public static string Hash(string input)
 {
     return(BCryptHashHelper.ComputeHash(input));
 }
Ejemplo n.º 2
0
 public static bool ValidateHash(string input, string correctHash)
 {
     return(correctHash == null || string.IsNullOrEmpty(input) ? false : BCryptHashHelper.ValidateHash(input, correctHash));
 }