摘要: 在很多地方,都用到了数据加密,比较多的就是MD5了,也比较安全,下面就贴上个示例,输入一串字符串,通过MD5加密加密算法如下 public static string MD5_Encrypt(string md5_str) { System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5CryptoServiceProvider.Create(); byte[] bytes = System.Text.Encoding.ASCII.GetBytes(md5_str); byte[] bytes1 = md5.Co 阅读全文
posted @ 2013-10-17 16:26 徽州猿人 阅读(325) 评论(0) 推荐(0) 编辑