A human readable hash function
Implementation of https://github.com/fpgaminer/hash-phrase in Node, as a module (rather than just a CLI)
npm install --save hash-phrase
const hashPhrase = require('hash-phrase')
hashPhrase('Some Data', function (err, hash) {
if (err) return console.error(err)
console.log(hash) // victory populous masters billion eyes
})
Minimum required entropy (bits, default: 64)
An array of words (default is an array of 10000 english words supplied with module)
A function that takes data, and calls back with a hash of that data.
Defaults to using pbkdf2 with 50000 iterations, key length of 32, with a digest of sha256. Default is probably fine.
$ npm install -g hash-phrase
$ hash-phrase "Some Data"
victory populous masters billion eyes
With 64-bits encryption, use this for comparison but not brute-force or collision-attack resistant applications.
MIT
- Thanks to https://github.com/fpgaminer for the original idea and python implementation
- Sponsored by nearForm