BCrypt password hashing function for credential-plus
npm install credential-plus-bcrypt
DEPRECATED!!! USE upash INSTEAD
```
$ npm install --save credential-plus-bcrypt
js
const credential = require('credential-plus');
credential.install(require('credential-plus-bcrypt'));// Hash and verify with bcrypt and default configs
credential.hash('We are all unicorns', {func: 'bcrypt'})
.then(hash) => {
console.log(hash);
//=> {"hash":"$2a$10$fxxhS75tSP7sP/8UNNJs8uspHSfusSCafU.EhTsn15ENdm/9n3IQe","func":"bcrypt"}
credential.verify(hash, 'We are all unicorns')
.then(match) => {
console.log(match);
//=> true
});
});
``See also the list of contributors who participated in this project.