UtilityTools.EncryptString Method

This method encrypts a string.

The encryption methods (EncryptString and DecryptString are typically used to securely send "state" information to the client browser. For example, in a "stateless" interview the EncryptString method can be used to securely pass the template's file path to the client browser when an interview is requested. That same encrypted string can then be posted back to the server when the interview is finished. The server can then use the DecryptString method to find the template associated with the interview.

Syntax

public virtual string EncryptString( string value )

Parameters Description
value The string you want to encrypt. (It cannot be longer than 4096 characters.)