MachineKeyValidation Enumeration
Specifies the type of encryption process that is used for validation and encryption of data.
Assembly: System.Web (in System.Web.dll)
| Member name | Description | |
|---|---|---|
| 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. | |
| AES | Specifies that ASP.NET uses AES (Rijndael) encryption. |
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.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.