API Almanac
API reference › Hash

MD5, SHA-1, SHA-256, SHA-384 or SHA-512 of a string

GET/v1/hash

GET/v1/hash

MD5, SHA-1, SHA-256, SHA-384 or SHA-512 of a string

The text is hashed as UTF-8 and never stored. For files, hash locally — this is for short strings and checksums.

PARAMETERS
textquery · stringREQUIRED
Text to hash (UTF-8)
e.g. hello
algoquery · enum
Algorithm
one of: md5, sha1, sha256, sha384, sha512
encodingquery · enum
Output encoding
one of: hex, base64
In the full reference
REQUEST
curl "https://api.apialmanac.com/v1/hash?text=hello" \
  -H "X-API-Key: YOUR_KEY"
RESPONSE
200OK
{
  "algo": "sha256",
  "encoding": "hex",
  "length": 5,
  "hash": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.