Пример #1
0
 /// <summary>
 /// 对输入的字符串进行gb2312编码后在用MD5加密
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static string MD5GB2312(string input)
 {
     return(Md5.EncryptHexString(input, Encoding.GetEncoding("gb2312")));
 }
Пример #2
0
 /// <summary>
 /// 对输入的字符串进行MD5加密
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static string MD5(string input)
 {
     return(Md5.EncryptHexString(input));
 }