Mumba Hash
Hashing with Promise support.
Installation
$ npm install --save mumba-hash
Examples
Normal usage:
; let hash = ; // Create a hash on "foo" with the default 5 iterations.hash ;
PHP compatible mode:
let hash = php: true ; // Create a hash on "foo" with the default 5 iterations.hash ;
Comparing hashes with submitted text (such as a passphrase):
let storedHash = '$2a$05$tpkxsCGs3DQAulwg8jMLm.2m6onpogPyISQUltka1LLUBgQ9EO1xG'; hash
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install$ npm test
People
The original author of Mumba Hash is Andrew Eddie.
License
© 2016 Mumba Pty Ltd. All rights reserved.