We want to use message level encryption on apiKey when sending the information to target servers. While sending the apiKey over to target servers we want to encrypt (with hmac) and send it to them. In order to achieve this, we tried via CryptoJS
. Can you please let us know the best easy way to achieve this?
Are talking about using CryptoJS in a javascript policy scenario? It is hard to say, what you did wrong without your providing any information about what youâve tried.
The CryptoJS lib works as youâd expect it to without any additional tricks.
Here is a way to implement 3DES encryption.
Create a JavaScript policy that references crypt-js.js library and necessary components.