MachineKeyProtection 列舉

定義

指定值,表示資料應該加密或解密,雜湊式訊息驗證碼 (HMAC) 應該附加或驗證,或兩者。

public enum class MachineKeyProtection
public enum MachineKeyProtection
type MachineKeyProtection = 
Public Enum MachineKeyProtection
繼承
MachineKeyProtection

欄位

All 0

指定雜湊式訊息驗證碼 (HMAC) 應附加至資料,而且資料應加密 (適用於 Encode(Byte[], MachineKeyProtection) 方法),或資料應解密和驗證 (適用於 Decode(String, MachineKeyProtection) 方法)。

Encryption 1

指定資料應加密 (適用於 Encode(Byte[], MachineKeyProtection) 方法) 或解密 (適用於 Decode(String, MachineKeyProtection) 方法)。

Validation 2

指定雜湊式訊息驗證碼 (HMAC) 應附加至資料 (適用於 Encode(Byte[], MachineKeyProtection) 方法) 或驗證 (適用於 Decode(String, MachineKeyProtection) 方法)。

適用於