MachineKeyCompatibilityMode Enum
Definition
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.
Specifies which encryption methods can be used.
public enum class MachineKeyCompatibilityMode
public enum MachineKeyCompatibilityMode
type MachineKeyCompatibilityMode =
Public Enum MachineKeyCompatibilityMode
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Framework20SP1 | 0 | Use the encryption methods that were implemented in .NET Framework versions earlier than version 2.0 Service Pack 2. Initialization vectors (IVs) are used for all encryption operations except for storing encrypted passwords in the ASP.NET membership database. |
Framework20SP2 | 1 | Use the stronger encryption methods that are available in .NET Framework version 2.0 SP2 and later versions. Initialization vectors (IVs) are used for all encryption operations. |
Framework45 | 2 | Use encryption methods that are available in .NET Framework version 4.5 and later versions. Compared to the encryption methods that are used for Framework20SP1 and Framework20SP2, the ciphertext that is generated by the default cryptographic routines is slightly smaller and is more resilient against certain classes of theoretical attacks. They also integrate with Windows 8 directory key management in order to get required cryptographic keys. This option also enables you to specify custom cryptographic routines by writing a class that derives from DataProtector and specifying the class name in the DataProtectorType property. The following configuration requirements apply to this option:
When you specify this option, forms authentication tickets are always both encrypted and signed, regardless of the value specified for the Protection property. View state is also both encrypted and signed if a page's EnableViewStateMac property is |
Remarks
You use the MachineKeyCompatibilityMode values when you set the CompatibilityMode property.