Bcrypt Generator

Generate bcrypt password hashes with configurable rounds.

Hash a password with bcrypt, or check a password against an existing bcrypt hash. Choose the cost factor: each step up doubles the work, and 10 to 12 is typical, so pick the highest your login can afford (around a quarter of a second). bcrypt adds a random salt automatically, so the same password gives a different hash each time, and the cost and salt are stored inside the hash. Hashing runs locally with bcrypt.js.

Each +1 doubles the work. 10–12 is typical; pick the highest your login can afford (~250 ms).

Hashing runs locally with bcrypt.js; nothing is uploaded.

Common use cases

  • Make a test password hash for a database seed
  • Check whether a password matches a stored hash
  • Choose a cost factor by seeing how long hashing takes

How to use

  1. Choose Generate hash or Check password.
  2. Enter the password and, to generate, the cost factor.
  3. Copy the hash, or read whether the password matches.

FAQ

Why does the same password give different hashes?

Each hash has its own random salt, stored in the hash itself, so the check still works.

Is there a password length limit?

bcrypt uses only the first 72 bytes of a password. Very long passphrases are cut there.