Compartir a través de


Crypt.Encrypt

Crypt.Encrypt

The Encrypt method encrypts data using the same participant key that is used to exchange Microsoft .NET Passport information sent to .NET Passport.

Syntax

Function Crypt.Encrypt(rawData) As String

Parameters

  • rawData
    The data to be encrypted as a string.

Return values

The data encrypted using the .NET Passport participant key for the current site as a string.

Example

For an example of this method, see Crypt.Decrypt.

Remarks

After the Encrypt method is called, the Decrypt method must be called to make the data readable. Encrypt will fail if attempting to encrypt a null value or more than 2045 bytes of information. Larger blobs of data must be broken up and encrypted separately. The Encrypt and Decrypt methods are used to help maintain the data's security.

Use the Encrypt method to encrypt data sent over the Internet or stored in a cookie.

See Also

Passport Crypt Object | Crypt.Compress | Crypt.Decompress