asp.net.ph

FormsAuthentication.HashPasswordForStoringInConfigFile Method

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;

Parameters

password
The password to hash.
passwordFormat
The hash algorithm to use. Choices are "sha1" or "md5".

Return Value

Returns a String containing a hashed password.

Remarks

Password algorithms supported are SHA1 and MD5.

See Also

FormsAuthentication Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph