.NET中获取字符串的MD5码
① 导入命名空间:
源代码复制(IE有效)打印关于
using System.Web.Security;
② 获取MD5码:
源代码复制(IE有效)打印关于
string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5");
① 导入命名空间:
源代码复制(IE有效)打印关于
using System.Web.Security;
② 获取MD5码:
源代码复制(IE有效)打印关于
string Password = FormsAuthentication.HashPasswordForStoringInConfigFile(TextBox1.Text.ToString(), "MD5");