Export (0) Print
Expand All
Expand Minimize

MachineKeyProtection Enumeration

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.

Namespace:  System.Web.Security
Assembly:  System.Web (in System.Web.dll)

public enum MachineKeyProtection

Member nameDescription
AllSpecifies that a hash-based message authentication code (HMAC) should be appended to the data and that the data should be encrypted (for the Security.Encode method) or that the data should be both decrypted and validated (for the Security.Decode method).
EncryptionSpecifies that the data should be encrypted (for the Security.Encode method) or decrypted (for the Security.Decode method).
ValidationSpecifies that a hash-based message authentication code (HMAC) should be appended to the data (for the Security.Encode method) or validated (for the Security.Decode method).

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft