日期:2014-05-19  浏览次数:20508 次

有网站开发经验人员请进
请问:你们在登录时,用的是什么加密算法?

------解决方案--------------------
http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/cpref/html/frlrfSystemSecurityCryptographyMD5ClassTopic.asp

[C#]
byte[] data = new byte[DATA_SIZE];

// This is one implementation of the abstract class MD5.
MD5 md5 = new MD5CryptoServiceProvider();

byte[] result = md5.ComputeHash(data);

要求
命名空间: System.Security.Cryptography

平台: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 系列

程序集: Mscorlib (在 Mscorlib.dll 中)