Skip to content

thenables/bcrypt-then

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bcrypt-then

NPM version Build status Test coverage Dependency Status License Downloads

bcrypt as promised.

API

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) {

})

bcrypt.compare(password, hash).then( valid => )

Compare a password with a bcrypt hash. Returns a boolean.

bcrypt.compare('password', user.password).then(function (valid) {
  assert(valid)
})

About

[DEPRECATED] bcrypt@1 now supports promises

Resources

License

Stars

Watchers

Forks

Packages

No packages published