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