I am using cryptoJS Lib for generating Hex HMACSHA256 signature for AWS4 request.Its working fine in custom application scope but in sn_capi scope throws me error undefined properties.
gist.github.com/igable/4bdcd90f78a8b2b07581 ..I have used this cryptojs file in the above link in my servicenow "script include" which is in sn_capi/cloud API scope when i hit this code with command var CryptoJS = new sn_capi.Crypto().CryptoJS; var kRegion = CryptoJS.HmacSHA256('regionName', 'kDate'); gs.info(kRegion); to get the hash i gets an error "undefined properties" at lines 1,8,50,149,186 but this works fine in custom application scope.I am able to generate hash value in custom application scope but fails in sn_capi scope.Can anyone guide me on this.
Hey