MachineKeyProtection Enumeration

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
All

Specifies that a hash-based message authentication code (HMAC) should be appended to the data and that the data should be encrypted (for the M:System.Web.Security.Encode method) or that the data should be both decrypted and validated (for the M:System.Web.Security.Decode method).

Encryption

Specifies that the data should be encrypted (for the M:System.Web.Security.Encode method) or decrypted (for the M:System.Web.Security.Decode method).

Validation

Specifies that a hash-based message authentication code (HMAC) should be appended to the data (for the M:System.Web.Security.Encode method) or validated (for the M:System.Web.Security.Decode method).

.NET Framework
Available since 4.0
Return to top
Show: