Adding cryptojs code to servicenow
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2023 11:13 PM - edited 06-21-2023 03:07 AM
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