PT Privacy Tools

Bcrypt Hash & Verify

Hash passwords with bcrypt and verify them against existing hashes entirely in your browser with bcryptjs. No uploads, fully local.

πŸ”’ Runs entirely in your browser β€” nothing is uploaded

bcrypt runs locally in your browser. Passwords are never uploaded.

Was this tool useful? Rate it:

Hash passwords with bcrypt

Bcrypt is a password hashing function designed to be deliberately slow, which makes it a strong choice for storing login credentials. Instead of a fast digest like SHA-256, bcrypt applies a tunable amount of work and folds a random salt into every hash. This tool runs the bcryptjs library directly in your browser, so the password you type is hashed on your device and never sent to a server. The output is a self-contained string that includes the algorithm version, the cost factor and the salt, which is why every run produces a different hash even for the same password.

Choosing a cost factor

The cost, also called the work factor, sets how many rounds bcrypt performs. The work doubles with each step, so a cost of 12 is roughly four times slower than a cost of 10. A higher cost makes brute-force and dictionary attacks far more expensive, because an attacker must spend that same time on every guess. For interactive web logins, a value between 10 and 12 is a common balance between security and response time. Because this tool runs in a single browser tab, very high costs can take several seconds, which is a useful reminder of just how much work each hash represents.

Verifying instead of decrypting

Bcrypt hashes are one-way, so you can never turn a hash back into the original password. To check a password you re-hash the candidate with the salt stored inside the existing hash and compare the results, which is exactly what verify mode does with bcrypt.compareSync. Paste a stored hash, type the password you want to test, and the tool reports whether they match without ever revealing the original secret. This is helpful for debugging authentication, confirming a seeded test account or learning how password storage works. For production systems, always hash passwords on a trusted backend; use this page for local experiments, education and quick checks where keeping the data on your own machine is an advantage.

How to use

  1. Enter a passwordType the password you want to hash or verify.
  2. Pick a costChoose a work factor; higher is slower and stronger.
  3. Hash or verifyGenerate a bcrypt hash, or compare a password against an existing hash.

Frequently asked questions

Is my password sent anywhere?
No. Hashing and verification run with bcryptjs in your browser, so the password never leaves your device.
What is the cost factor?
The cost (work factor) controls how slow the hash is. Each step doubles the work; 10 to 12 is common for web logins.
Why is a higher cost slower?
That is the point. A slow hash makes large-scale password guessing expensive for attackers, with a small delay for legitimate logins.
Can I verify an existing bcrypt hash?
Yes. Switch to verify mode, paste a $2a$/$2b$ hash and a candidate password to check whether they match locally.