Share this page

# lr_decrypt

Deprecated: Use lr_unmask.

Unmasks an encoded string during replay.

    char *lr_decrypt( const char *EncodedString);

Alphabetical Listing - C Language Utility Functions

## Arguments

Name | Comments
--- | ---
EncodedString | The encoded string you want to unmask.

The lr_decrypt function unmasks an encoded string. This function is generated during recording to encode passwords. VuGen records the actual password but displays an encoded version of the password within the lr_decrypt function.

When you run the script, the test run component unmasks the password. Each time you record, VuGen encodes the password differently, even when you use the same password.

It is possible to create an lr_decrypt call from a recorded value in the script. Select an entire string between quote marks, not including the quote marks themselves. Right-click in the selected string and select Mask String. The original string is replaced with an lr_decrypt call where the EncodedString argument is the original string after encoding.

To get an encoded value for later use, copy the value. Then go to Windows Start menu > Password Encoder. Paste the value into the Password field, and click Generate. The masked string appears in the Encoded String box. Click Copy and paste the masked string into a parameter for later use, or assign the value to a string variable.

## Return Values

This function returns a pointer to the decoded string or NULL on error.

## Parameterization

Parameterization is not applicable to the argument of this function. To apply parameterization, use lr_eval_string.

## Example

In the following example, lr_decrypt unmasks the encoded string in the password edit field.

    connect_server("199.203.78.170", "9000"/*version=110*/,"module=e:\\appsnca\\fnd\\7.5\\forms\\us\\fndscsgn userid=applsyspub/pub@vision fndnam=apps");
    lr_think_time(7);
    set_window( "Oracle Applications");
    edit_set("FNDSCSGN.SIGNON.USERNAME.0", "OPERATIONS");
    edit_set("FNDSCSGN.SIGNON.PASSWORD.0",lr_decrypt("38620da61ca1093e7aa7ec"));
    button_press("FNDSCSGN.SIGNON.CONNECT_BUTTON");

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: