Highlighted
Absent Member.. Absent Member..
Absent Member..
1913 views

How to encrypt password in TruClient scripting - VuGen 12.50

Jump to solution

Hi,

I have just started using TruClient scripting and would like to know how we can encrypt passwords.

Please can someone help here?

 

Thanks & regards

Santosh

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to encrypt password in TruClient scripting - VuGen 12.50

Jump to solution

Hi,

Use the password encoder utility to encode the text. Copy the encoded text and use TC.decrypt function in the approrpiate argument to decode it. You need to switch the argument toggle from plain text to JavaScript.

You can store the encoded text in a value of parameter file. In such case the argument value in the TruClient step will look something like: 

TC.decrypt(TC.getParam("Password")); // Where Password is the name of the name of the parameter

Good luck,

Shlomi

View solution in original post

3 Replies
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to encrypt password in TruClient scripting - VuGen 12.50

Jump to solution

Hi

One easy way is to use the Password Encoder application. It is installed together with Vugen, in the Tools subfolder in the startmenu. (But remember, this encoding is just to obfuscate the password so it is not visible in clear text. It is just to use lr_decrypt() in a printout to find it out)

br /ola


Please mark post as solved if your problems or questions is/are resolved.
If this post was valuable to you, please consider kudo it.

 

.
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

Re: How to encrypt password in TruClient scripting - VuGen 12.50

Jump to solution

Hi,

Use the password encoder utility to encode the text. Copy the encoded text and use TC.decrypt function in the approrpiate argument to decode it. You need to switch the argument toggle from plain text to JavaScript.

You can store the encoded text in a value of parameter file. In such case the argument value in the TruClient step will look something like: 

TC.decrypt(TC.getParam("Password")); // Where Password is the name of the name of the parameter

Good luck,

Shlomi

View solution in original post

Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: How to encrypt password in TruClient scripting - VuGen 12.50

Jump to solution

Many thanks for your quick response. Much appreciated.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.