Skip to content
Node style HMAC for use in the browser, with native implementation in node
JavaScript
Branch: master
Clone or download
Sc00bz and calvinmetcalf Fixed array out of bounds bug
Note ((undefined ^ 0x36) == 0x36) so there's no real bug.
Latest commit ebee700 Oct 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore add tests to .npmignore May 23, 2017
.npmignore add tests to .npmignore May 23, 2017
.travis.yml bump to LTS Aug 23, 2018
LICENSE add MIT LICENSE May 27, 2017
README.md tests: use safe-buffer too May 23, 2017
browser.js Fixed array out of bounds bug Oct 15, 2018
index.js adhere to standard Sep 27, 2015
legacy.js use hash implimentations directly (#13) Apr 28, 2017
package.json 1.1.7 Apr 11, 2018
test.js tests: use safe-buffer too May 23, 2017

README.md

create-hmac

NPM Package Build Status Dependency status

js-standard-style

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', Buffer.from('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
You can’t perform that action at this time.