asp.net.ph

FormsAuthPasswordFormat Enumeration

System.Web.Configuration Namespace


Defines the encryption format for storing passwords.

Members


Member Description
Clear Specifies that passwords are not encrypted. This field is constant.
MD5 Specifies that passwords are encrypted using the MD5 hash algorithm. This field is constant.
SHA1 Specifies that passwords are encrypted using the SHA1 hash algorithm. This field is constant.

Remarks

To programmatically configure the type of encryption used to store passwords in a Web application, use the AuthenticationSection class. This class is also used internally by FormsAuthentication in the processing of authentication tickets.

Example

The following code example shows how to use the FormsAuthPasswordFormat enumeration. Refer to the code example in the FormsAuthenticationUserCollection class topic to learn how to get the collection.

// Get the current PasswordFormat property value.
FormsAuthPasswordFormat currentPasswordFormat = formsAuthenticationCredentials.PasswordFormat;

// Set the PasswordFormat property value.
formsAuthenticationCredentials.PasswordFormat = FormsAuthPasswordFormat.SHA1;
  C# VB

See Also

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