Hashes an input with bcrypt with the specified cost.
Hashes an input asynchronously with the specified cost.
Verifies an input to match the expected hash with the bcrypt algorithm.
Verifies an input asynchronously to match the expected hash with the bcrypt algorithm.