亚洲成av人片天堂网九九-国产精品成人av电影不卡-少妇无码专区视频网站-久久人人97超碰爱香蕉

新聞建站cms系統、政府cms系統定制開發

廣州網站建設公司-閱速公司

asp.net新聞發布系統、報紙數字報系統方案
/
http://m.plnongji.cn/
廣州網站建設公司
您當前位置:首頁>網站技術

網站技術

HashPasswordForStoringInConfigFile已過時

發布時間:2021/12/17 17:45:37  作者:Admin  閱讀:802  

廣告:

警告 CS0618 “FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)”已過時:“The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.” FeiShareLibrary E:\aspnet2.0\53BK公司網站-net-家里\FeiShareLibrary\Haocookie.cs 79 活動

FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)
System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile

System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5")
換成: NewMD5(sKey, "md5")

public static string NewMD5(string strData,string md5str)
{
string strResult = "";
using (var md5 = MD5.Create())
{
var result = md5.ComputeHash(Encoding.UTF8.GetBytes(strData));
strResult = BitConverter.ToString(result);
strResult= strResult.Replace("-", "").ToUpper();
}
return strResult;
}

廣告:

相關文章
HashPasswordForStoringInConfigFil
cms新聞系統購買咨詢
掃描關注 廣州閱速軟件科技有限公司
掃描關注 廣州閱速科技