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 uploadedHash 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
- Enter a passwordType the password you want to hash or verify.
- Pick a costChoose a work factor; higher is slower and stronger.
- Hash or verifyGenerate a bcrypt hash, or compare a password against an existing hash.