问题
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