Encrypts the System.Web.Security.FormsAuthenticationTicket based on the configuration information for the application.
- ticket
- The ticket to encrypt.q
A string representing the ticket.
The ticket might be just a string representation of the ticket, a string representation with a checksum or string representation with a checksum and encryption. Depending on the settings.
The actual method to encrypt the data depends on the setting in the "mode" attribute in the <authentication> section in the <system.web> section of the application configuration.
The possible values are:
Value Effect All Checksums and encrypts the ticket; Prevents tampering and visibility from the user None Encodes the tickets as a hex string, the ticket can be tampered and the content viewed by a client Encryption Encrypts the tickets, but does not checksum the results. Validation Appends a checksum to the sequence, to avoid a client tampering with the data. The default mode is "All".
Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0