Hash text (MD5/SHA/BLAKE2/bcrypt)

Hashes text with MD5, SHA-1, SHA-256, SHA-512, SHA3-256, BLAKE2b or bcrypt.

Request

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

JSON object. Required: text.

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/hash \
3  --header 'Accept: application/json' \
4  --header 'Content-Type: application/json' \
5  --header 'X-API-Key: YOUR_API_KEY' \
6  --data '{
7  "text": "hello",
8  "rounds": 4,
9  "algorithm": "bcrypt"
10}'

Hash text (MD5/SHA/BLAKE2/bcrypt): Password Security API reference

Hashes text with MD5, SHA-1, SHA-256, SHA-512, SHA3-256, BLAKE2b or bcrypt. 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  "hash": "$2b$04$ku91naBk2FJMLxevl0QU9.aADGvGT8OWFlW5RXFTOrkUVYbmGiboe",
3  "algorithm": "bcrypt"
4}

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.