예제 #1
0
 /// <summary>
 /// 传入明文,返回用SHA1密后的字符串
 /// </summary>
 /// <param name="str">要加密的字符串</param>
 /// <returns>SHA1加密后的字符串</returns>
 public static string ToSHA1(string str)
 {
     return(MD5Helper.ToSHA1(str));
 }
예제 #2
0
 /// <summary>
 /// 传入明文,返回用MD%加密后的字符串32位长度
 /// </summary>
 /// <param name="str">要加密的字符串</param>
 /// <returns>用MD5加密后的字符串</returns>
 public static string ToMD5(string str)
 {
     return(MD5Helper.ToMD5_32(str));
 }