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
Asynchronously generates the salt
the generated 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")
BCrypt Type Definition