登陆界面加密

Code
public static string LoginLetterSelected(string key)
{
return key.Trim().Replace("%","").Replace("'","").Replace("-","");
}

public static string String2MD5(string key)
{
return FormsAuthentication.HashPasswordForStoringInConfigFile(key,"md5").Substring(8,16).ToLower();
}

 

md5加密方式

posted @ 2008-10-07 17:19  hb  阅读(249)  评论(0)    收藏  举报