ToolSnippet

Generate & Verify Bcrypt Password Hashes

Create industry-standard salted Bcrypt hashes with adjustable cost factors (4-14) and verify plain passwords against hashes.

About This Tool

Bcrypt is an adaptive password-hashing function based on the Blowfish cipher. It incorporates a random salt to protect against rainbow table attacks and an adjustable work factor to stay secure against hardware scaling.

Key Features

Standard $2a$ / $2b$ Bcrypt hash format
Adjustable cost factor (4 to 14 rounds)
Built-in password vs hash verifier
Client-side security and privacy

How to Use This Tool

  1. To generate: Enter a password, choose your cost factor (rounds 4–14), and click 'Generate Bcrypt Hash'.
  2. To verify: Switch to the 'Verify' tab, paste the plain password and the $2a$ or $2b$ hash, and check the match status.

Why Use This Tool

  • Standard password hashing format for Node.js (bcryptjs), Rails, Django, and Laravel.
  • Allows testing and validating hash format compatibility ($2a$, $2b$, $2y$).

Pro Tips

  • Bcrypt hashes are always exactly 60 characters long and begin with $2a$, $2b$, or $2y$

Frequently Asked Questions

What cost factor should I use for Bcrypt?

Cost 10 or 12 is currently recommended for standard web applications, providing a healthy balance between security and server response time.

Related Tools