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, která byla zašifrována nebo poskytována pomocí ověřovacího kódu HMAC (hash).

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 zašifrován a/nebo hashován.

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 hashování ASP.NET používají k dešifrování a ověření předávaných dat, najdete v tématu machineKey – element (ASP.NET Nastavení schéma).

Platí pro