Export (0) Print
Expand All

MachineKeySection::Decryption Property

Specifies the encryption algorithm that is used for encrypting and decrypting forms authentication data.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute(L"decryption", DefaultValue = L"Auto")]
[StringValidatorAttribute(MinLength = )]
[TypeConverterAttribute(typeof(WhiteSpaceTrimStringConverter))]
public:
property String^ Decryption {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: System::String
A value that indicates the algorithm that is used to encrypt and decrypt forms authentication data. (For information about how to specify the algorithm that is used when view state is encrypted, see the Validation property.) Auto is the default value.

ExceptionCondition
ConfigurationErrorsException

The selected value is not one of the decryption values.

The Decryption property supports the following decryption values:

  • Auto, which is the default value, specifies that ASP.NET determines which encryption algorithm to use based on configuration default settings.

  • AES, which specifies that ASP.NET uses the AES algorithm to encrypt data. AES is the default algorithm to encrypt data.

  • 3DES, which specifies that ASP.NET uses the TripleDES algorithm to encrypt data.

  • A custom algorithm.

This property is typically set declaratively in the decryption attribute of the machineKey element of the Web.config file. For more information, see the machineKey element.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft