hmacsha1-js icon indicating copy to clipboard operation
hmacsha1-js copied to clipboard

Simple HMAC-SHA1 for JavaScript. The code was extracted directly from Chromium examples for extensions.

hmacsha1

Simple HMAC-SHA1 for JavaScript. The code was extracted directly from Chromium examples for extensions.

NPM

npm install hmacsha1

Example

var hmacsha1 = require('hmacsha1');
var hash = hmacsha1(KEY, DATA);  //Returns Base64 Encoded String

Link

https://developer.chrome.com/extensions/tut_oauth

https://developer.chrome.com/extensions/examples/extensions/oauth_contacts/chrome_ex_oauthsimple.js