Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Using crypto-js node modules in Apigee Javascript policy

I'm trying to use the crypto-js node module in a JS policy and following this example. What is the best way to create the crypto-js.js file included in this example and to ensure that the file has updated code and is safe to use? Here's the repo for the module, and it looks like source code has been updated as recently as 4 months ago; so how do I ensure that the crypto-js.js file I use has the latest code?

Solved Solved
0 9 6,951
1 ACCEPTED SOLUTION

I wouldn't do that.

Despite the existence of the example you cited, the JS callout is not well-suited to performing crypto. It's better to do that kind of work in Java.

What specifically are you trying to do?

View solution in original post

9 REPLIES 9