其实在ASP
Net编程中
不用调用md
asp来加密数据
在DotNet中有自带的类
System
Web
Security
HashPasswordForStoringInConfigFile() 以下是引用片段
publicstringmd(stringstrintcode)
{
if(code==)//位MD加密(取位加密的~字符)
{
returnSystemWebSecurityFormsAuthenticationHashPasswordForStoringInConfigFile(strMD)ToLower()Substring();
}
if(code==)//位加密
{
returnSystemWebSecurityFormsAuthenticationHashPasswordForStoringInConfigFile(strMD)ToLower();
}
return;
}