标签:
using System.Security.Cryptography; public static string encrypherment(string password) { string StrEncipherment = ""; MD5 myMd5 = MD5.Create(); byte[] mess = myMd5.ComputeHash(System.Text.Encoding.Default.GetBytes(password.ToCharArray())); for (int i = 0; i < mess.Length; i++) StrEncipherment += mess[i].ToString("x").PadLeft(2, ‘0‘); return StrEncipherment; }
标签:
原文地址:http://www.cnblogs.com/chcong/p/4245523.html