C#的MD5函数其实很简单,就下面几行代码,重复调用即可.
public string md5(string str)
{
MD5 m = new MD5CryptoServiceProvider();
byte[] s = m.ComputeHash(UnicodeEncoding.UTF8.GetBytes(str));
return BitConverter.ToString(s);
}
记得要在顶部加入C#的MD5函数
using System.Security.Cryptography;
using System.Text;