简体   繁体   English

如何在 JMeter 中使用 RSA 加密数据

[英]How to encrypt data using RSA in JMeter

To login to the application user credentials (login and password) have to be encrypted using the RSA public key.要登录应用程序,用户凭据(登录名和密码)必须使用 RSA 公钥加密。 The public key could be extracted from the response to one of the requests.可以从对请求之一的响应中提取公钥。 How can I encrypt user data using the extracted public key?如何使用提取的公钥加密用户数据?

You can use JDK Security API in order to generate a signature based on the input data.您可以使用JDK Security API以根据输入数据生成签名

There are a lot of tutorials over the web with the example code you can re-use inJSR223 Test Elements using Groovy language很多关于 web 的教程,您可以在使用Groovy语言的JSR223 测试元素中重复使用示例代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM