arrow_back All endpoints

BCrypt Hash

POST/api/v1/tools/bcrypt-hash2 credits per callbcryptpasswordhashsecurity

Produces a BCrypt hash suitable for storing a password. BCrypt is intentionally slow, and the work factor controls how slow - higher is more resistant to offline cracking and costs proportionally more time.

receipt_long
Why 2 credits?

BCrypt is deliberately expensive by design: a work factor of 11 is roughly a tenth of a second of dedicated CPU. Priced above a plain digest because that CPU time is the entire point of the algorithm.

Any HTTP client works. Replace the key with one from your dashboard.

bash
curl -X POST https://toolkitbackend-j69m.onrender.com/api/v1/tools/bcrypt-hash \
  -H "Authorization: Bearer tb_live_<your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "password": "correct horse battery staple",
  "workFactor": 11
}'

Input

FieldTypeRequiredDefaultDescription
passwordstringrequired- Plaintext password to hash. Sent over TLS and never stored.
workFactorintegeroptional11 BCrypt cost parameter. Defaults to 11. Each step up doubles the time taken.

Output

FieldTypeDescription
hashstringThe BCrypt hash, including its embedded salt and work factor.

Try it

Sends a real POST /api/v1/tools/bcrypt-hash from your browser and charges 2 credits to your account.

Sign in to run this endpoint. New accounts start with free credits.