MachineKeyProtection Enumeration

.NET Framework (current version)
 

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 class 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: