当前位置: 代码迷 >> ASP.NET >> 有网站开发经验人员请进解决办法
  详细解决方案

有网站开发经验人员请进解决办法

热度:6721   发布时间:2013-02-26 00:00:00.0
有网站开发经验人员请进
请问:你们在登录时,用的是什么加密算法?

------解决方案--------------------------------------------------------
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 中)
  相关解决方案