Thursday, February 28, 2008

How to Encrypt the Password using C#.Net

using System.Security;
using System.Web;

public string EncryptPassword(string Pwd)
{
string Pwd = "";
Pwd = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(Pwd, "MD5");
return Pwd;
}

No comments:

 
Feedback Form