Suppose you face a situation, when you want to encrypt your password
and use this value in script. This is a cake walk.
You have to go to password encoder, the Password Encoder
tool lets you enter regular text and convert it to an encoded string.
Choose Start > Programs > LoadRunner > Tools >
Password Encoder to open the Password Encoder tool.
Password: Enter the password you want to encode,
and then click Generate.
Done!!!
Now, How to use the
encrypted value in script?
Click here to know more
This is done by using lr_decrypt function as shown below in
script.
vuser_init()
}
how would I use this in the Value par of a web_submit_data function?
ReplyDelete"Name=psword", "Value=password", ENDITEM,
Regards,
saka
First of all encrypt your password using password encoder and then use lr_eval_string function and lr_decrypt to pass that value in web_submit_data.
ReplyDeleteThe final api will look like:
web_submit_data(..
..
"Name=psword","Value={lr_eval_string(lr_decrypt("value_from_encoder"))}"
..
.., LAST);
Thanks,
Devendra
What type the encryption use password encoder..??
ReplyDeleteHi,
ReplyDeleteThe Vugen uses a 32-bit encryption to encode the password.
Thanks,
Dev