cryptography

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

POST/api/hash-generator

Full 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).

FieldTypeRequiredDescription
inputstringYesThe text to hash
algorithmdefaultNoHash algorithm: md5, sha1, sha256, sha384, or sha512
encodingdefaultNoOutput 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.

FieldTypeDescription
hashstringThe computed hash digest
algorithmenum
encodingenum
input_byte_lengthnumberByte length of the UTF-8 input
digest_lengthnumberCharacter 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

StatusMeaning
200Success — result in response body
400Bad request — invalid input; error field describes the problem
404Tool not found
429Rate limit exceeded (30 req/min anonymous, 300 req/min free key)
500Internal 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.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy