System.Web.Configuration.MachineKeySection.Decryption Property

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

Syntax

[System.Configuration.ConfigurationProperty("decryption", DefaultValue="Auto")]
[System.Configuration.StringValidator(MinLength=1)]
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
public string Decryption { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The MachineKeySection.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 MachineKeyValidation.AES algorithm to encrypt data. AES is the default algorithm to encrypt data.

  • 3DES, which specifies that ASP.NET uses the MachineKeyValidation.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.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0