How can we encrypt and decrypt password in Karate?

拜拜、爱过 提交于 2021-02-17 01:50:17

问题


During API automation, I do have a requirement to encrypt the password and decrypt runtime just before using it in Karate.

Is there any specific inbuilt method available to do so?

If it is not available, can anyone please guide me on how to do this?


回答1:


There's nothing built into Karate because you can easily plug in anything via Java interop: https://github.com/intuit/karate#http-basic-authentication-example

You can find plenty of Java code examples that will do what you want.



来源:https://stackoverflow.com/questions/61674855/how-can-we-encrypt-and-decrypt-password-in-karate

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!