string sEncrypted = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sPassword, "MD5");
原串:sPassword
密文串:sEncrypted
命名空间:using System.Security;