Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MachineKeyProtection Enumeration
Collapse the table of content
Expand the table of content

MachineKeyProtection Enumeration

.NET Framework 4.6 and 4.5

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