MachineKey.Decode(String, MachineKeyProtection) 메서드

정의

주의

This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.

HMAC(해시 기반 메시지 인증 코드)와 함께 암호화되었거나 제공된 데이터를 디코딩 및/또는 유효성을 검사합니다.

public:
 static cli::array <System::Byte> ^ Decode(System::String ^ encodedData, System::Web::Security::MachineKeyProtection protectionOption);
public static byte[] Decode (string encodedData, System.Web.Security.MachineKeyProtection protectionOption);
[System.Obsolete("This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.")]
public static byte[] Decode (string encodedData, System.Web.Security.MachineKeyProtection protectionOption);
static member Decode : string * System.Web.Security.MachineKeyProtection -> byte[]
[<System.Obsolete("This method is obsolete and is only provided for compatibility with existing code. It is recommended that new code use the Protect and Unprotect methods instead.")>]
static member Decode : string * System.Web.Security.MachineKeyProtection -> byte[]
Public Shared Function Decode (encodedData As String, protectionOption As MachineKeyProtection) As Byte()

매개 변수

encodedData
String

해독 및/또는 유효성을 검사할 암호화된 데이터입니다.

protectionOption
MachineKeyProtection

encodedData 매개 변수를 암호화 및/또는 해시해야 하는지를 나타냅니다.

반환

Byte[]

해독된 데이터를 나타내는 Byte 배열입니다.

특성

예제

코드 예제는 클래스 개요를 MachineKey 참조하세요.

설명

ASP.NET 전달된 데이터의 암호를 해독하고 유효성을 검사하는 데 사용하는 암호화 및 해시 알고리즘에 대한 자세한 내용은 machineKey 요소(ASP.NET 설정 스키마)를 참조하세요.

적용 대상