node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



NPM version Build status Test coverage Dependency Status License Downloads

bcrypt as promised.


Only implements two methods:

bcrypt.hash(password, [iterations]).then( hash => )

Hash a password with a # of iterations, defaulting to 10.

bcrypt.hash('password', 15).then(function (hash) {
}), hash).then( valid => )

Compare a password with a bcrypt hash. Returns a boolean.'password', user.password).then(function (valid) {