Exemple #1
0
        public static string SHA1Hash(string password, out string secretKey)
        {
            //加密Key
            var slatBytes = SecretKeyProvider.GetSlatBytes();

            secretKey = Convert.ToBase64String(slatBytes);
            return(SHA1Hash(password, slatBytes));
        }
Exemple #2
0
 public static string SHA1Hash(string password)
 {
     return(SHA1Hash(password, SecretKeyProvider.GetSlatBytes()));
 }