Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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