Share this page

# lr_unmask

Unmasks an encoded string during replay.

## C Language

    char *lr_unmask( const char *EncodedString);

Example: lr_unmask | Parameter Functions

## Java Language

    String lr.unmask( String EncodedString);

Example: lr.unmask | String and Parameter Functions | Java Syntax

## Arguments

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

The lr_unmask function is generated during recording to encode passwords. VuGen records the actual password but displays an encoded version of the password within the lr_unmask function. You can also manually add an lr_unmask function call by right-clicking the string in the script and selecting Mask String. The resulting EncodedString argument is the original string after encoding.

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

Password Encoder Tool

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.

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: