Bcrypt Hash Generator and Checker

Hash a password with bcrypt, or check if a password matches a bcrypt hash.

Each step up doubles the time (10 to 12 is common).

Everything runs in your browser, and your data never leaves your device.

How Bcrypt Hash Generator and Checker works

Hashes a password with bcrypt, a hash made for storing passwords. bcrypt adds a random salt and is slow on purpose, so guessing passwords from a stolen hash takes much longer.

The cost factor sets how slow it is. Each step up doubles the time. Use the highest cost your server can handle at login, usually 10 to 12.

Input to Bcrypt Hash Generator and Checker

  • Generate a hash: a password and a Cost factor from 4 to 16.
  • Check a password: a password and a bcrypt hash that starts with $2a$, $2b$ or $2y$.

Output from Bcrypt Hash Generator and Checker

  • A 60 character hash, like $2b$10$..., with the version, cost and salt inside it. It changes every time because the salt is random.
  • A match or no match result for the checking of hash.