MachineKeySection.Decryption Property
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 the encryption algorithm that is used for encrypting and decrypting forms authentication data.
public:
property System::String ^ Decryption { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))]
[System.Configuration.ConfigurationProperty("decryption", DefaultValue="Auto")]
[System.Configuration.StringValidator(MinLength=1)]
public string Decryption { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.WhiteSpaceTrimStringConverter))>]
[<System.Configuration.ConfigurationProperty("decryption", DefaultValue="Auto")>]
[<System.Configuration.StringValidator(MinLength=1)>]
member this.Decryption : string with get, set
Public Property Decryption As String
Property Value
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.
- Attributes
Exceptions
The selected value is not one of the decryption values.
Remarks
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.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應