C# MD5加密简易算法

来源:互联网 发布:坛水墨水官网淘宝 编辑:程序博客网 时间:2024/05/16 23:01

 

首先引入:using System.Web.Security;

如果引入不到,则需要借助外界的库文件:system.web.dll(在本博客中可以下载到此资源)


string text = "qqqqqq";Debug.Log("text : " + System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(text, "MD5"));

即控制台打印出来的就是对字符串“text”MD5的结果;

0 0
原创粉丝点击