> codebench_TOOL: HomeLOCAL-ONLY⌘K Switch

Bcrypt Hash & Verify

Tool guide

Generate and verify bcrypt password hashes

Input: This tool processes input in your browser. Check in Network (opens in a new tab)

Mode:
Rounds:10

Hash passwords with bcrypt using configurable salt rounds (4-16) and verify passwords against existing hashes. Hashing and verification use bcryptjs in your browser. Neither operation uploads the password or hash.

How to use it

  1. Select Hash mode, leave Rounds at 10, and put the disposable sample value in Password.
  2. Click Hash and copy the full output. The hash shown here is one possible result, not a fixed answer.
  3. Switch to Verify, keep the same password, paste the hash into Bcrypt Hash, and click Verify. Expect “✓ Match — password matches the hash”.

Worked example

Example input
Password: codebench-demo
Rounds: 10
Example output
$2b$10$ZzkM6aXqB02KwqxMuJRaiOEQNtyqqt0aLpHoatdDci7R.tSYcseKm

The $2b$ prefix identifies the bcrypt variant and the next 10 is the cost. The rest includes the salt and hash; Verify needs the complete string.

What to watch for

Do not compare two freshly generated hashes. Hash uses a new random salt each time, while Verify reads the salt and cost from the stored hash.

Frequently asked question

Is bcrypt’s password limit 72 characters?
It is 72 UTF-8 bytes, not 72 characters. Two passwords that differ only after that boundary can match the same hash. Enforce the byte limit before hashing when your application needs to reject overly long inputs.

Browse Crypto / Hash tools

Further reading

> codebench $Ctrl+Enter Run