.NET中获取字符串的MD5码

C# 代码:

导入命名空间(需要在Web页面的代码页中引用)

 using System.Web.Security;

获取MD5码

string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5");
原文地址:https://www.cnblogs.com/error503/p/3506812.html