Share this page

# lr_decrypt_ex

Decrypts a string encrypted by lr_encrypt_ex.

    char* lr_decrypt_ex(const char* ciphertext);

## Arguments

Name | Comments
--- | ---
ciphertext | The encrypted string to decrypt.

The lr_decrypt_ex function is used to decrypt messages encrypted by lr_encrypt_ex.

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_decrypt_ex 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_decrypt_ex.

## Return Values

This function returns the decrypted string.

## Parameterization

The argument ciphertext can be parameterized.

## Example

Copy code

    Action()
    {
        char* ciphertext;
        char* plaintext;

        ciphertext = lr_encrypt_ex("hello world!");
        plaintext = lr_decrypt_ex(ciphertext);

        lr_output_message("ciphertext is %s", ciphertext);
        lr_output_message("plaintext is %s", plaintext);

        return 0;
    }

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