DevMate
Back to Toolverse

Crypto

Bcrypt

Create a salted Bcrypt test hash or compare an input against an existing digest with bounded browser cost.

Local processing
Loading tool workspace...

About this tool

When to use it

Create a salted Bcrypt test hash or compare an input against an existing digest with bounded browser cost.

How to use it

For hashing, enter test text, choose a cost, and generate a hash. To verify, switch modes, supply that digest and the candidate text, then select Verify Bcrypt hash. Start with a low cost for functional fixtures; production policy belongs in the receiving system.

Guide updated . Examples checked against this implementation.

Worked examples

Hash and verify a fixture

Input

Hash demo-password with cost 4, then verify demo-password against that output

Expected output

Password matches the Bcrypt hash.

The digest varies because each hash receives a fresh salt. Verification tests the candidate against the salt and cost embedded in that digest.

Errors and unsupported input

A password exceeds 72 UTF-8 bytes

This workspace rejects it rather than silently truncating. Multi-byte characters reach the limit sooner than an ASCII character count suggests.

Continue this workflow

  • Hash Generator: Use a plain digest only for text fingerprinting, not password storage.

Format references

Questions

Frequently asked questions

Why do two hashes of the same text differ?

A new random salt is used each time. Verify the password with Bcrypt rather than comparing separately generated digest strings.