DESKTOP-SYIYI\Dell 3976461224 xx %!s(int64=7) %!d(string=hai) anos
..
.travis.yml 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
browser.js 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
index.js 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
legacy.js 3976461224 xx %!s(int64=7) %!d(string=hai) anos
package.json 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
readme.md 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos
test.js 03a863fb53 add node_modules %!s(int64=8) %!d(string=hai) anos

readme.md

create-hmac

Build Status

Node style hmacs for use in the browser, with native hmac functions in node. Api is the same as hmacs in node:

var createHmac = require('create-hmac');
var hmac = createHmac('sha224', new Buffer("secret key"));
hmac.update('synchronous write'); //optional encoding parameter
hmac.digest();// synchronously get result with optional encoding parameter

hmac.write('write to it as a stream');
hmac.end();//remember it's a stream
hmac.read();//only if you ended it as a stream though

To get the JavaScript version even in node require require('create-hmac/browser');