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.
// Get the current PasswordFormat property value.
FormsAuthPasswordFormat currentPasswordFormat =
// Set the PasswordFormat property value.