Bcrypt Generator

Generate and verify bcrypt password hashes

FreeNo sign-upDeveloper Tools →

Bcrypt Generator hashes a password with bcrypt and can verify a password against an existing hash. A cost factor from 6 to 14 controls how much work each hash takes: every step up doubles the time, which is what makes bcrypt resistant to brute-force guessing.

A random salt is generated for every hash and stored inside the output, so hashing the same password twice gives different strings and both verify correctly. The work is done in your browser with the bcryptjs library.

Advertisement

How to use Bcrypt Generator

1

Enter a password

Type the text to hash.

2

Choose a cost factor

10 to 12 is typical for web applications.

3

Hash or verify

Copy the hash, or paste a hash and plain text to check them.

Use Cases

  • Creating a hash to seed an admin user in a database
  • Checking that an application's stored hash matches a password
  • Comparing hashing time at different cost factors

Frequently Asked Questions