using System;
using System.Text;
using System.Security.Cryptography;
/// <summary>
/// 32位MD5加密/// </summary>
/// <param name="str"></param>
/// <returns></returns>
public string to32MD5(string str)
{
MD5 md5 = MD5.Create();
string md5str = "";
byte[] s = md5.ComputeHash(Encoding.UTF8.GetBytes(str));
for (int i = 0; i < s.Length; i++)
{
md5str = md5str + s[i].ToString("X");
}
return md5str;
}