System.Web.Security Namespace FormsAuthentication Class
Given a password and a string identifying the hash type, this routine produces a hash password suitable for storing in a configuration file.
[ VB ]
Public Shared Function HashPasswordForStoringInConfigFile ( _
password As String, _
passwordFormat As String _
) As String
[ C# ]
public static string HashPasswordForStoringInConfigFile (
string password,
string passwordFormat
);
[ C++ ]
public: static String* HashPasswordForStoringInConfigFile (
String* password,
String* passwordFormat
);
[ JScript ]
public static function HashPasswordForStoringInConfigFile (
password : String,
passwordFormat : String
) : String;
- password
- The password to hash.
- passwordFormat
- The hash algorithm to use. Choices are "sha1" or "md5".
Returns a String containing a hashed password.
Password algorithms supported are SHA1 and MD5.
FormsAuthentication Members