All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
c#,md5,加密函数_[Asp.Net教程]

Writer: 归海一刀 Article type: Programming skills(编程技巧) Time: 2014/1/30 1:25:43 Browse times: 333 Comment times: 0

c#,md5,加密函数_[Asp.Net教程]


Head photo

Go homepage
Upload pictures
Write articles

c# md5 加密函数_[Asp.Net教程]

有的时候我们需要在项目的某个东西需要用到加密算法MD5也许是最长用到的了

using System.Security.Cryptography;
using System.Text;

// 要添加上面的引用
public string md5(string str)
{
MD5 m = new MD5CryptoServiceProvider();
byte[] s = m.ComputeHash(UnicodeEncoding.UTF8.GetBytes(str));
return BitConverter.ToString(s);
}





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.