Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Adding cryptojs code to servicenow

ShAn21
Tera Guru

HI Team,

Found an article in github for a script include code for CryptoJS. But someow does not work as expected. Has someone made it work? If yes please let me know

https://gist.github.com/igable/4bdcd90f78a8b2b07581

 

I am unable to call this hmac function in script include. It says ': Cannot read property "init" from undefined'.

return new scope.Crypto().CryptoJS.HmacSHA256(message, new scope.Crypto().CryptoJS.enc.Hex.parse(key_hex)).toString(new scope.Crypto().CryptoJS.enc.Hex);

 

 

Thanks

0 REPLIES 0