You're looking for the code in the wrong place, my expectation is that you should rather be using freelancer marketplaces or your friends/colleagues rather than asking the members of JMeter mailing list to do your job for you. As an exception here is how you can use Java Security API <https://docs.oracle.com/javase/tutorial/security/apisign/index.html> and Groovy language in order to perform RSA encryption of a string using a public key: > def cipher = javax.crypto.Cipher.getInstance('RSA')def factory = > java.security.KeyFactory.getInstance("RSA")def > publicKeyString='your_public_key_here'def encodedKeySpec = new > java.security.spec.X509EncodedKeySpec(publicKeyString.decodeBase64())def > publicKey = > factory.generatePublic(encodedKeySpec)cipher.init(javax.crypto.Cipher.ENCRYPT_MODE, > publicKey)cipherText = cipher.doFinal('the string you want to > encode'.getBytes())log.info('Encrypted: ' + cipherText.encodeBase64())
More information: Apache Groovy - Why and How You Should Use It <https://www.blazemeter.com/blog/groovy-new-black/> -- Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html
