다음을 통해 공유


MachineKeySection.Decryption 속성

정의

양식 인증 데이터를 암호화 및 암호 해독하는 데 사용되는 암호화 알고리즘을 지정합니다.

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

속성 값

양식 인증 데이터를 암호화하고 암호 해독하는 데 사용되는 알고리즘을 나타내는 값입니다. (뷰 상태가 암호화될 때 사용되는 알고리즘을 지정하는 방법에 대한 자세한 내용은 속성을 참조하세요 Validation .) Auto 는 기본값입니다.

특성

예외

선택한 값이 암호 해독 값 중 하나가 아닙니다.

설명

이 속성은 Decryption 다음 암호 해독 값을 지원합니다.

  • Auto기본값인 ASP.NET 구성 기본 설정에 따라 사용할 암호화 알고리즘을 결정하도록 지정합니다.

  • AES- ASP.NET 알고리즘을 AES 사용하여 데이터를 암호화하도록 지정합니다. AES 는 데이터를 암호화하는 기본 알고리즘입니다.

  • 3DES- ASP.NET 알고리즘을 TripleDES 사용하여 데이터를 암호화하도록 지정합니다.

  • 사용자 지정 알고리즘입니다.

이 속성은 일반적으로 Web.config 파일의 machineKey 요소 특성에 선언적으로 decryption 설정됩니다. 자세한 내용은 machineKey 요소를 참조하세요.

적용 대상

추가 정보