专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
在.net中,由于.net framework 封装了常见的加密算法,因此实现标准的MD5算法只需要短短几行代码即可实现:public string Md5(string strPassword){MD5CryptoServiceProvider hashmd5; hashmd5 = new MD5CryptoServiceProvider();return BitConverter.ToString(hashmd5.ComputeHash(Encoding.Default.GetBytes(strPassword))).Replace(\"-\",\"\... [阅读全文] [PDF]
环境:vs.net2005/sql server2000/xp测试通过 1.MD5 16位加密实例 using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; namespace md5 { class Program { static void Main(string[] args) { Console.WriteLine(UserMd5("8")); Console.WriteLine(GetMd5S... [阅读全文] [PDF]
1 共2条 分1页