asp.net.ph

MachineKeyValidation Enumeration

System.Web.Configuration Namespace


.NET Framework version 2.0

Specifies the type of encryption process that is used for validation and encryption of data.

Members


Member Description
AES Specifies that ASP.NET uses AES ( Rijndael ) encryption.
MD5 Specifies that ASP.NET uses the Message Digest 5 ( MD5 ) hash algorithm. This algorithm performs better than SHA1.
SHA1 Specifies that ASP.NET uses the SHA1 hash algorithm. 

This is the default value. Use this algorithm for increased security.

TripleDES Specifies that ASP.NET uses TripleDES ( 3DES ) encryption. TripleDES uses three successive iterations of the DES algorithm.

Remarks

The MachineKeyValidation class provides four encryption types that ASP.NET uses for encrypting and validating data. The four encryption types are SHA1, MD5, TripleDES, and AES.

Example

The following code example shows how to use the MachineKeyValidation class. This code example is part of a larger example provided for the MachineKeySection class.

// Set Validation property
configSection.Validation = MachineKeyValidation.SHA1;
  C# VB
See Also

MachineKeySection 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