FormsAuthPasswordFormat Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the encryption format for storing passwords.
public enum class FormsAuthPasswordFormat
public enum FormsAuthPasswordFormat
type FormsAuthPasswordFormat =
Public Enum FormsAuthPasswordFormat
- Inheritance
Name | Value | Description |
---|---|---|
Clear | 0 | Specifies that passwords are not encrypted. This field is constant. |
SHA1 | 1 | Specifies that passwords are encrypted using the SHA1 hash algorithm. This field is constant. Due to collision problems with SHA1, Microsoft recommends a security model based on SHA256 or better. |
MD5 | 2 | Specifies that passwords are encrypted using the MD5 hash algorithm. This field is constant. Due to collision problems with MD5, Microsoft recommends a security model based on SHA256 or better. |
SHA256 | 3 | Specifies that passwords are encrypted using the SHA256 hash algorithm. This field is constant. |
SHA384 | 4 | Specifies that passwords are encrypted using the SHA384 hash algorithm. This field is constant. |
SHA512 | 5 | Specifies that passwords are encrypted using the SHA512 hash algorithm. This field is constant. |
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.
Product | Versions |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: