This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// based on https://gist.github.com/mrpinghe/f44479f2270ea36bf3b7cc958cc76cc0 | |
// changed from the Node.js Crypto module to the Web Crypto API instead | |
// go to https://api.veracode.com/appsec and execute this script in the Chrome JavaScript console | |
const id = "YOUR_API_CREDENTIALS_ID"; | |
const key = "YOUR_API_CREDENTIALS_KEY"; | |
const preFix = "VERACODE-HMAC-SHA-256"; | |
const verStr = "vcode_request_version_1"; |