public static string SHA1Hash(string password, out string secretKey) { //加密Key var slatBytes = SecretKeyProvider.GetSlatBytes(); secretKey = Convert.ToBase64String(slatBytes); return(SHA1Hash(password, slatBytes)); }
public static string SHA1Hash(string password) { return(SHA1Hash(password, SecretKeyProvider.GetSlatBytes())); }