I need some tips of how can we write some Java code in Jmeter using Bean shell Sampler to accomplish Encryption . Help on this highly useful!!
Asked
Active
Viewed 543 times
1 Answers
1
In JMeter 4 new features you can use a new function _digest to encrypt using the following algorithms:
- MD2
- MD5
- SHA-1
- SHA-224
- SHA-256
- SHA-384
- SHA-512
for example:
${__digest(SHA-256,Felix qui potuit rerum cognoscere causas,mysalt,,)}

Ori Marko
- 56,308
- 23
- 131
- 233
-
Thanks @user7294900 . Can we not accomplish RSA algorithm in Jmeter ? – Siddish Feb 26 '18 at 06:26
-
Thanks @user7294900 . I was using that page only. However, i am getting error in Jmeter while doing the same . Moreover i am using android.util.Base64 package to accomplish the same. But not succeded :( – Siddish Feb 26 '18 at 06:45
-
Please ask a new question with all the relevant/specific details – Ori Marko Feb 26 '18 at 06:46
-
I have already asked in https://stackoverflow.com/questions/48941915/unable-to-save-rsa-key-in-jmeter. But no response yet :( – Siddish Feb 26 '18 at 06:50
-
you wrote "Unable to get the public key using jmeter from the custom class" it has no usable details, full error, ... – Ori Marko Feb 26 '18 at 06:53
-
Have updated that ticket @user7294900. Could you please provide me a solution? – Siddish Feb 26 '18 at 07:18