MachineKeyProtection 枚举

定义

指定值,这些值指示应该对数据进行加密还是解密,应该追加还是验证基于哈希的消息验证代码 (HMAC),或者两个操作都执行。Specifies values that indicates whether data should be encrypted or decrypted, whether a hash-based message authentication code (HMAC) should be appended or validated, or both.

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

字段

All 0

指定基于哈希的消息验证代码 (HMAC) 应追加到数据末尾,且应该对数据进行加密(对于 Encode(Byte[], MachineKeyProtection) 方法),或者应该同时对数据进行解密和验证(对于 Decode(String, MachineKeyProtection) 方法)。Specifies that a hash-based message authentication code (HMAC) should be appended to the data and that the data should be encrypted (for the Encode(Byte[], MachineKeyProtection) method) or that the data should be both decrypted and validated (for the Decode(String, MachineKeyProtection) method).

Encryption 1

指明应该对数据进行加密(对于 Encode(Byte[], MachineKeyProtection) 方法)或解密(对于 Decode(String, MachineKeyProtection) 方法)。Specifies that the data should be encrypted (for the Encode(Byte[], MachineKeyProtection) method) or decrypted (for the Decode(String, MachineKeyProtection) method).

Validation 2

指明基于哈希的消息验证代码 (HMAC) 应被追加到数据的末尾(对于 Encode(Byte[], MachineKeyProtection) 方法)或被验证(对于 Decode(String, MachineKeyProtection) 方法)。Specifies that a hash-based message authentication code (HMAC) should be appended to the data (for the Encode(Byte[], MachineKeyProtection) method) or validated (for the Decode(String, MachineKeyProtection) method).

适用于