/// <summary> /// MD5加密传入的字符串 /// </summary> /// <param name="sPassword"></param> /// <returns></returns> public static string MD5Password(string sPassword) { //return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile("123", "md5"); return(MD5Provider.HashString(sPassword)); }
/// <summary> /// 获取默认的用户密码 /// </summary> /// <returns></returns> public static string GetDefaultPassword() { return(MD5Provider.HashString(USER_PASSWORD)); }