Bcrypt Hash Generator & Verifier
Generate and verify bcrypt password hashes in your browser. Choose the cost factor—nothing is uploaded.
How it works
- Hash and verify run locally with vendored bcryptjs. Higher cost is slower and stronger. Do not paste production secrets into untrusted devices.
About bcrypt hashing
What is bcrypt?
Bcrypt is a password hashing function designed to be slow and salted, so stored hashes resist brute-force guessing better than plain SHA digests.
This page generates and verifies bcrypt hashes entirely in your browser with a vendored library. The cost factor (work factor) controls CPU cost per hash.
Hash with bcrypt in code
- JavaScript
import bcrypt from "bcryptjs"; const hash = bcrypt.hashSync(password, 10); bcrypt.compareSync(password, hash);- Python
import bcrypt hash = bcrypt.hashpw(password.encode(), bcrypt.gensalt(rounds=10)) bcrypt.checkpw(password.encode(), hash)
Bcrypt FAQ
- What cost factor should I use?
- Cost 10–12 is a common default for interactive logins. Higher values are stronger but slower; this tool allows 4–15 for local experiments.
- Is bcrypt the same as encryption?
- No. Bcrypt is one-way hashing for password verification. You cannot recover the original password from the hash.
- Are passwords uploaded?
- No. Hashing and verification run in your browser with vendored bcryptjs. Nothing is sent to a server.