bcrypt as promised.
Only implements two methods:
Hash a password with a # of iterations
, defaulting to 10
.
bcrypt.hash('password', 15).then(function (hash) {
})
Compare a password with a bcrypt hash. Returns a boolean.
bcrypt.compare('password', user.password).then(function (valid) {
assert(valid)
})