bcryptjs-then
bcryptjs as promised.
Installation
$ npm install bcryptjs-then
API
Implements two methods:
bcrypt.hash(password, [iterations]).then( hash => )
Hash a password with a # of iterations
, defaulting to 10
.
bcrypthash'password' 15
bcrypt.compare(password, hash).then( valid => )
Compare a password with a bcrypt hash. Returns a boolean.
bcrypt