Sunday, April 4, 2010

Get MD5 hash password to store in config file

The simplest way to get hash password is as follows.
FormsAuthentication.HashPasswordForStoringInConfigFile("value of string", FormsAuthPasswordFormat.MD5.ToString());

Remember to import the following namespaces.
using System.Web.Security;
using System.Web.Configuration;


No comments: