Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Login Password Encryption With RSA Key

$
0
0

Each Time user login encrypted password is going to the server. I have tried to generate the encrypted password as adding a java script action and inside the javascript action I have written the below code. While trying to execute I am getting the error ReferenceError: "RSAKey" is not defined. I am very new to neoload. Can you please suggest how to resolve this

var publicKey = new RSAKey();

context.variableManager.setValue("c_modulusHexString",c_modulusHexString);
context.variableManager.setValue("c_publicExponentHexString",c_publicExponentHexString);
publicKey.setPublic(c_modulusHexString, c_publicExponentHexString);
var initSecureRandom = new SecureRandom();
var result = publicKey.encrypt(MyPassword);
var Password= hex2b64(result);

context.variableManager.setValue("Password",Password);


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>