Check text against a bcrypt hash

Checks whether a text matches a bcrypt hash.

Request

POSThttps://password-security-toolkit.p.apihiver.com/v1/verify-bcrypt

JSON object. Required: text, hash.

Request Body

Edit the values below to test different scenarios.

Parameters and body structure are inherited from this endpoint's definition. Changes here only apply to this test run.

Language
Client
1curl --request POST \
2  --url https://password-security-toolkit.p.apihiver.com/v1/verify-bcrypt \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "hash": "$2b$04$0t0mY1uO0x3dZ5l0d7mJ1uJ0rE6s1XqfKxv8Qy7Jg2n7Qm0cJk3yW",
8  "text": "hello"
9}'

Check text against a bcrypt hash: Password Security API reference

Checks whether a text matches a bcrypt hash. This endpoint is part of the Password Security API: Password strength scoring, private breach checks against known leaked passwords, secure password generation, hashing and bcrypt checks.

Example response (200, application/json)

Success.

1{
2  "match": false
3}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "text: Field required"
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.