Navigation
POST crypto

bcrypt_hash

1 credit

Hash a password with bcrypt or verify a password against an existing bcrypt hash. Verify requires the 'hash' parameter.

Endpoint

POST /api/v1/tools/crypto/bcrypt_hash

Body Parameters

hash string | null optional default: null
action string optional default: "hash"
Options: hash verify
rounds integer optional default: 12
password string required

Example

input Request
{
    "hash": "$2b$04$UEKAQ0U5H/Xm6MG0sf6kFeUNxJ/ke6IG0f7DK4/G59sW4evCwLagK",
    "action": "verify",
    "password": "password123"
}
output Response
{
    "valid": true
}

Response Format

HTTP/1.1 200 OK SUCCESS
{
  "success": true,
  "data": {
    "valid": true
},
  "meta": {
    "tool": "bcrypt_hash",
    "credits_consumed": 1
  }
}
HTTP/1.1 422 Unprocessable Entity ERROR
{
  "success": false,
  "data": null,
  "error": {
    "code": "validation_error",
    "message": "The given data was invalid."
  }
}

Sign in to try this tool directly from the docs.

Code Examples
Request Example
lightbulb Developer Tip

Credits are deducted before execution. If the upstream tool fails, credits are automatically refunded to your account.