當前位置:編程學習大全網 - 網站源碼 - 求MD5加密解密代碼

求MD5加密解密代碼

給妳壹個加密處理類吧!

public static string MD5(string str)

{

byte[] b = Encoding.Default.GetBytes(str);

b = new MD5CryptoServiceProvider().ComputeHash(b);

string ret = "";

for (int i = 0; i < b.Length; i++)

ret += b[i].ToString("x").PadLeft(2, '0');

return ret;

}

解密目前沒有,所以就靠妳自己了哈!

  • 上一篇:自助建站好用嗎?為什麽那麽便宜?
  • 下一篇:傳奇盛世幻境6層怎麽打
  • copyright 2024編程學習大全網