apyhub
DEVELOPER TOOLS · SECURITY & PRIVACY

Generate Hash API

What it does

Hash Generator takes a text string and returns its hash using MD5, SHA1, SHA256, or SHA512. Send the text query parameter and choose an algorithm when you need a predictable digest for integrity checks, fingerprints, or lookup keys.

The response includes the original input, the selected algorithm, and the computed hash. That makes it easy to compare values in your own systems or store a stable identifier for a string without keeping the original in plain form.

Use Hash Generator when you need to verify that content has not changed, generate cache keys, deduplicate records, or create compact references for user-provided text. It is a simple string-to-digest utility with a fixed set of common hashing algorithms.

Because the endpoint works on text input only, it fits lightweight validation and security workflows where you need a deterministic hash and nothing more.

GET
Hash a string with MD5, SHA1, SHA256, or SHA512
http://localhost:8080/dosvak/hash
QUICKSTARTGUIDE

Quickstart

Hash a piece of text with the default SHA-256 algorithm.

curl -X GET "http://localhost:8080/dosvak/hash?text=hello%20world&algorithm=sha256" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with hash, input, and algorithm string fields. hash is the computed digest, input is the original text, and algorithm is the hash algorithm used.

{
  "hash": "b94d27b9934d3e08a52e52d7da7dabfade4c3f7c8f5a6f7f6f8f8e4d7d9b0d6a",
  "input": "hello world",
  "algorithm": "sha256"
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.

About this endpoint

What it does

Computes a hash for the supplied string using the selected algorithm and returns the resulting hash alongside the original input and the algorithm used.

Query Parameter(s)

AttributeTypeMandatoryDescription
textStringYesThe string to hash.
algorithmENUMNoHash algorithm to use. Allowed values: md5, sha1, sha256, sha512. Default: sha256.

Response

Returns a JSON object with hash, input, and algorithm string fields.

ParameterTypeMandatoryDescription
hashStringNoThe computed hash value.
inputStringNoThe input string that was hashed.
algorithmStringNoThe algorithm used to produce the hash.

Query parameters

Name
Type
Description
textREQUIRED
string
algorithmOPTIONAL
string
md5 · sha1 · sha256 · sha512
DEFAULT sha256
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.