您现在的位置是:首页
>
文件加密怎么设置密码 用ASP.Net中的自带类进行MD5加密
用ASP.Net中的自带类进行MD5加密 其实在ASP Net编程中 不用调用md a 来加密数据 在DotNet中有自带的类 Sy tem We Security Ha hPa wordForSto
用ASP.Net中的自带类进行MD5加密

其实在ASP Net编程中 不用调用md asp来加密数据 在DotNet中有自带的类 System Web Security HashPasswordForStoringInConfigFile() 以下是引用片段 public string md (string str int code) { if(code== ) // 位MD 加密(取 位加密的 ~ 字符) { return System Web Security FormsAuthentication HashPasswordForStoringInConfigFile(str MD ) ToLower() Substring( ) ; } if(code== ) // 位加密 { return System Web Security FormsAuthentication HashPasswordForStoringInConfigFile(str MD ) ToLower(); } return ; } lishixinzhi/Article/program/net/201311/15522
很赞哦! (1038)