public static String Md5Encrypt(String strSource) { byte[] result = Encoding.Default.GetBytes(strSource); System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoServiceProvider(); byte[] output = md5.ComputeHash(result); return BitConverter.ToString(output).Replace("-", ""); }

 

posted on 2018-10-17 18:47  花生豆角  阅读(1129)  评论(0编辑  收藏  举报