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 Settings Schema)を参照してください。

適用対象