Share this page

# lr.decryptEx

Decrypts a string encrypted by lr.encryptEx.

## Syntax

    lr.decryptEx( Ciphertext );

## Arguments

Name | Comments
--- | ---
Ciphertext | The 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;
    }

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: