asp.net.ph

FormsProtectionEnum Enumeration

System.Web.Configuration Namespace


Defines the type of encryption, if any, to use for cookies.

Members


Member Description
All Specifies that the application use both data validation and encryption to help protect cookies. This option uses the configured data-validation algorithm ( based on the machineKey element ). Triple-DES ( 3DES ) is used for encryption, if it is available and if the key is at least 48 bytes long. All is the default ( and recommended ) value.
Encryption Specifies that cookies are encrypted using Triple-DES or DES, but data validation is not performed on cookies. Cookies used this way might be subject to chosen plaintext security attacks.
None Specifies that both encryption and validation are disabled for sites that use cookies only for personalization and thus have weaker security requirements. Using cookies in this manner is not recommended; however, it is the least resource-intensive way to enable personalization using the .NET Framework.
Validation Specifies that the application use a validation scheme to verify that the contents of an encrypted cookie have not been altered in transit. The cookie is created by concatenating a validation key with the cookie data, computing a Message Authentication Code ( MAC ), and appending the MAC to the outgoing cookie.

Remarks

If you select the All value, the system uses the configured data-validation algorithm, based on the machineKey Element ( ASP.NET Settings Schema ) tag. This is the default, and recommended, value.

If you select None, cookies might be subject to plaintext attacks.

If you select Validation, the cookie is created using cookie validation by concatenating a validation key with the cookie data, computing a Message Authentication Code ( MAC ), and appending the MAC to the outgoing cookie.

See Also

FormsAuthenticationConfiguration Class Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph