lr.decryptEx

Decrypts a string encrypted by lr.encryptEx.

Syntax

lr.decryptEx( Ciphertext );

Arguments

NameComments
CiphertextThe encrypted string to decrypt.

The lr.decryptEx function is used to decrypt messages encrypted by lr.encryptEx.

The AES key must be set before this function can be used. For details, see Add an AES key in the Help Center.

Tip: You can add an lr.decryptEx function call by right-clicking a string you want to encode in the script and selecting Encrypt String (Stronger Encryption). The string is encrypted and inserted as an argument of lr.decryptEx.

Return Values

This function returns the decrypted string.

Parameterization

The argument Ciphertext can be parameterized.

Example

Copy code
function Action()
{
    let ciphertext = "hello world!";
    let encrypted = lr.encryptEx(ciphertext);
    let result = lr.decryptEx(encrypted);
    lr.outputMessage(result);
    return 0;
}