🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

bcryptjs-then

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bcryptjs-then

bcryptjs as promised

1.0.1
latest
Source
npm
Version published
Weekly downloads
2.1K
-15.94%
Maintainers
1
Weekly downloads
 
Created
Source

bcryptjs-then

NPM version Build status

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.

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

Keywords

bcrypt

FAQs

Package last updated on 31 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts