If you find a security flaw in this code, PLEASE report it.
DEPRECATED!!! USE upash INSTEAD
Install
$ npm install --save credential-plus-pbkdf2
Usage
const credential = require('credential-plus');
credential.install(require('credential-plus-pbkdf2'));
credential.hash('We are all unicorns', {func: 'pbkdf2'})
.then(hash) => {
console.log(hash);
credential.verify(hash, 'We are all unicorns')
.then(match) => {
console.log(match);
});
});
credential.hash('We are all unicorns', {func: 'pbkdf2', digest: 'sha1', iterations: 15000})
.then(hash) => {
console.log(hash);
credential.verify(hash, 'We are all unicorns')
.then(match) => {
console.log(match);
});
});
Authors
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE file for details.