private static string MD5E(string temp)
{
MD5 md5 = new MD5CryptoServiceProvider();
byte[] source=System.Text.Encoding.Default.GetBytes(temp);
byte[] Result=md5.ComputeHash(source);
System.Text.StringBuilder s=new System.Text.StringBuilder();
s.Capacity=40;//默认容量为40 加快追加数据时的速度
//防止追加数据时不必要的动态分配内存搞成的性能损失
//清除不要的资源
md5.Clear();
md5=null;
//返回结果
for (int i=0 ;i<Result.Length;i++)
s.Append(Result[i].ToString());
return s.ToString();
}