Skip to content

Instantly share code, notes, and snippets.

View ThibaudLopez's full-sized avatar

Thibaud Lopez Schneider ThibaudLopez

View GitHub Profile
@ThibaudLopez
ThibaudLopez / auth.js
Last active September 13, 2019 04:45 — forked from mrpinghe/auth.js
Veracode custom HMAC request signing algorithm (used for API authorization)
// 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";

Keybase proof

I hereby claim:

  • I am ThibaudLopez on github.
  • I am thibaud_lopez (https://keybase.io/thibaud_lopez) on keybase.
  • I have a public key whose fingerprint is A68D 71A4 A280 8262 40D5 DE0F 2CC7 DBFA 6B0B 3BB5

To claim this, I am signing this object: