A client-side-friendly library for PasswordMaker
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead of emersion:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
example.js
index.js
package-lock.json
package.json

README.md

passwordmaker-lib

Build Status

A library for Password Maker.

Forked from emersion/node-passwordmarker, with tweaks to allow client-side use without Browserify.

Key changes:

  • Switched from Node's Crypto module to crypto-js.
  • Dropped MD4 support, as it's not included in that library.

Usage

var makePassword = require('@webful/passwordmaker-lib');

console.log(makePassword({
	hashAlgorithm: 'hmac-sha256',
	masterPassword: 'MySuperStrongMasterPassword',
	data: 'example.org',
	length: 15,
	charset: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()_-+={}|[]\\:";\'<>?,./',
}));