标签:
/// <summary> /// 创建SHA1密码 /// </summary> /// <param name="password">密码</param> /// <returns></returns> public static string CreateSHA1(string password) { StringBuilder SB = new StringBuilder(); SHA1 sha1 = new SHA1CryptoServiceProvider(); byte[] temp = sha1.ComputeHash(Encoding.Default.GetBytes(password)); SB.Append(BitConverter.ToString(temp).Replace("-", "")); return SB.ToString(); }
标签:
原文地址:http://www.cnblogs.com/Darkon/p/5412139.html