Hash Generator API Reference
Compute cryptographic hashes of any UTF-8 string using the most common algorithms: MD5, SHA-1, SHA-256, SHA-384, and SHA-512. Output is a lowercase hex or base64 digest. Useful for verifying data integrity, generating checksums, and working with APIs that require signed requests.
Endpoint
/api/hash-generatorFull URL: https://quickhelp.dev/api/hash-generator
Request
Content-Type: application/json. No authentication required for the anonymous free tier (30 req/min per IP).
| Field | Type | Required | Description |
|---|---|---|---|
| input | string | Yes | The text to hash |
| algorithm | default | No | Hash algorithm: md5, sha1, sha256, sha384, or sha512 |
| encoding | default | No | Output encoding: hex (lowercase hexadecimal) or base64 |
Response
Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.
| Field | Type | Description |
|---|---|---|
| hash | string | The computed hash digest |
| algorithm | enum | — |
| encoding | enum | — |
| input_byte_length | number | Byte length of the UTF-8 input |
| digest_length | number | Character length of the hash output |
Example
SHA-256 hex digest
curl
curl -X POST https://quickhelp.dev/api/hash-generator \
-H 'Content-Type: application/json' \
-d '{"input":"Hello, World!","algorithm":"sha256","encoding":"hex"}'Request body
{
"input": "Hello, World!",
"algorithm": "sha256",
"encoding": "hex"
}Response
{
"hash": "dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986d",
"algorithm": "sha256",
"encoding": "hex",
"input_byte_length": 13,
"digest_length": 64
}Error codes
| Status | Meaning |
|---|---|
| 200 | Success — result in response body |
| 400 | Bad request — invalid input; error field describes the problem |
| 404 | Tool not found |
| 429 | Rate limit exceeded (30 req/min anonymous, 300 req/min free key) |
| 500 | Internal server error — transient; retry with exponential back-off |
OpenAPI spec
The full OpenAPI 3.1 specification for all tools is available at /openapi.json. Import it into Postman, Insomnia, or any OpenAPI-compatible client to get all endpoints with schema validation automatically.