MachineKey.Decode(String, MachineKeyProtection) Metoda

Definice

Upozornění

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.

Dekóduje nebo ověřuje data zašifrovaná nebo poskytnutá ověřovacím kódem zpráv založeným na hodnotě hash (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()

Parametry

encodedData
String

Šifrovaná data k dešifrování a/nebo ověření.

protectionOption
MachineKeyProtection

Určuje, jestli encodedData má být parametr šifrovaný nebo hashovaný.

Návraty

Byte[]

Pole Byte , které představuje dešifrovaná data.

Atributy

Příklady

Příklad kódu najdete v přehledu MachineKey třídy.

Poznámky

Informace o tom, které algoritmy šifrování a hash ASP.NET používají k dešifrování a ověření předávaných dat, najdete v tématu machineKey – element (ASP.NET Schéma nastavení).

Platí pro