Asynchronously compares the hash to the given data
Asynchronously compares the hash to the given data
the given data to be compared
the encrypted data to be compared to.
the error/result callback
bcrypt.compare("bacon", hash, function(err, res) {})
Asynchronously compares the hash to the given data
Asynchronously compares the hash to the given data
the given data to be compared
the encrypted data to be compared to.
the promise of a result
bcrypt.compare("bacon", hash)
Synchronously compares the hash to the given data
Synchronously compares the hash to the given data
the given data to be compared
the encrypted data to be compared to.
bcrypt.compareSync("veggies", hash); // false
Asynchronously generates the salt
Asynchronously generates the salt
the number of rounds to process the data for. (default - 10)
the error/result callback
Asynchronously generates the salt
Asynchronously generates the salt
the number of rounds to process the data for. (default - 10)
the generated salt
Asynchronously generates the salt
Synchronously generates the salt
Synchronously generates the salt
the number of rounds to process the data for. (default - 10)
bcrypt.genSaltSync(rounds)
Returns the number of rounds used to encrypt a given hash
Returns the number of rounds used to encrypt a given hash
hash from which the number of rounds used should be extracted.
the number of rounds used to encrypt a given hash
bcrypt.getRounds(encrypted)
Asynchronously creates a hash using the given data
Asynchronously creates a hash using the given data
the given data to be hashed
the salt to be used to hash the password.
a callback to be fired once the data has been encrypted.
bcrypt.hash(data, salt, progress, cb)
Asynchronously creates a hash using the given data
Asynchronously creates a hash using the given data
the given data to be hashed
the salt to be used to hash the password.
a callback to be called during the hash calculation to signify progress
a callback to be fired once the data has been encrypted.
bcrypt.hash(data, salt, progress, cb)
Asynchronously creates a hash using the given data
Asynchronously creates a hash using the given data
the given data to be hashed
the salt to be used to hash the password.
the promise of the hash
bcrypt.hash(data, salt)
Synchronously creates a hash using the given data
Synchronously creates a hash using the given data
the given data to be hashed
bcrypt.hashSync("bacon")
Native JS implementation of BCrypt for Node. Has the same functionality as node.bcrypt.js expect for a few tiny differences. Mainly, it doesn't let you set the seed length for creating the random byte array.
I created this version due to a small problem I faced with node.bcrypt.js. Basically, to deploy one of my apps which uses node.bcrypt.js on a winx64 platform, I have to force the user to download about 1.6gb of sdks, buildtools and other requirements of which some fail to install ! Microsoft :(
This code is based on javascript-bcrypt and uses [crypto] (http://nodejs.org/api/crypto.html) to create random byte arrays.
1.0.2
https://www.npmjs.com/package/bcrypt-nodejs