Performance issue using crypto js

I tried to use https://community.apigee.com/articles/38046/des-encryption-javascript-policy-using-cryptojs.html

For Crypto SHA 256 implemenatation

But its taking a lot of time…facing performance degradation.

  • Is there any other alternative ?

  • Is calling callouts faster than javascript ?

  • Is there any other callout for this?

  • Is there any caching which can help ?

,

I followed answer mentioned on community: https://community.apigee.com/articles/38046/des-encryption-javascript-policy-using-cryptojs.html

Aim is to use crypto js SHA 256 hashing but its taling a lot of time which degrades our perfromance.

Is there any other fast alternative ?

Can we use Callouts ? are they faster than javascript ?

Please comment.

1 Like

Yes, using cryptojs in a JS callout will not perform well.

There is an alternative - yes, if you are interested in just SHA256, then you can use the crypto object which is a builtin for the JS callout.

Another option is to avoid JS altogether and use an AssignMessage with a static function. These work only with strings, though.

1 Like

Thanks, I am using Javascript Object model and performance has been better.