BCrypt Hash
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.
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.
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
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
password | string | required | - | Plaintext password to hash. Sent over TLS and never stored. |
workFactor | integer | optional | 11 | BCrypt cost parameter. Defaults to 11. Each step up doubles the time taken. |
Output
| Field | Type | Description |
|---|---|---|
hash | string | The 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.