MD5 encryption

xiaoxiao2021-03-05  25

StrPwd = txtpwd.text; strpwd = system.web.security.formsauthentication.Security.FormSauthentication.hashPasswordforstoringInfigfile (StrPwd, "MD5");

This will make MD5 encrypted your password.

-------------------------------------------------- --------------------------------------------

public string GetMD5 (string sDataIn) {string Result; MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider (); byte [] bytValue, bytHash ;; bytValue = System.Text.Encoding.UTF8.GetBytes (sDataIn); bytHash = md5.ComputeHash (bytValue) Md5.clear (); string STEMP = ""; for (int i = 0; i

转载请注明原文地址:https://www.9cbs.com/read-38233.html

New Post(0)