SHA-256, SHA-512, MD5, SHA-3

Cryptographic Hash API

Generate cryptographic hashes with a single GET request. SHA-256, SHA-512, MD5, SHA-1, SHA-3 — output as hex or base64. No crypto libraries to install.

Supported Algorithms

sha256
sha512
sha384
sha1
sha3-256
sha3-512
md5

Code Examples

cURL

curl "https://api-snap.com/api/hash?text=Hello+World&algorithm=sha256" \
  -H "Authorization: Bearer snp_your_key"
# {"hash":"a591a6d40bf420...","algorithm":"sha256","encoding":"hex"}

JavaScript

const res = await fetch(
  "https://api-snap.com/api/hash?text=verify-me&algorithm=sha512",
  { headers: { Authorization: "Bearer snp_your_key" } }
);
const { hash } = await res.json();

Python

import requests

r = requests.get(
    "https://api-snap.com/api/hash",
    params={"text": "Hello World", "algorithm": "sha3-256", "encoding": "base64"},
    headers={"Authorization": "Bearer snp_your_key"},
)
print(r.json()["hash"])

Common Use Cases

Data integrity

Verify file or payload integrity with SHA-256 checksums

Cache busting

Generate content hashes for cache keys and ETags

Webhook verification

Hash webhook payloads to verify authenticity

Password migration

Generate hashes during database migrations (use bcrypt for storage)

Start Hashing

One API call. Seven algorithms. Zero dependencies.

Get Your Free API Key