Share this page

# lr.decrypt_ex

Decrypts a string encrypted by lr.encrypt_ex.

## C#

    string lr.decrypt_ex( String 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

    namespace Script
    {
        public partial class VuserClass
        {
            public int Action()
            {
                string a = "Hello, World";
                var encryptedstring = lr.encrypt_ex(a);
                var result = lr.decrypt_ex(encryptedstring);
                lr.output_message(result);
                return 0;
            }
        }
    }

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