X114
Retour à l’aperçu de l’API

hash

POST1 crédit

Computes a cryptographic hash of a UTF-8 string. Useful for content fingerprinting, deduplication, and verifying integrity without sending the payload to a third-party service.

Endpoint

POST https://x114.org/api/v1/hash

Corps de la requête

Envoyer en JSON dans le corps POST.

NameTypeRequiredDescription
textstringrequiredThe input text to hash. Up to 1 MB.
algorithm"sha1" | "sha256" | "sha384" | "sha512"optionalHash algorithm. Defaults to "sha256".

Corps de la réponse

JSON renvoyé en cas de succès (HTTP 200).

NameTypeRequiredDescription
okbooleanrequiredTrue on success.
algorithmstringrequiredThe algorithm used (uppercased).
hashstring (hex)requiredHex-encoded digest.
lengthnumberrequiredLength of the hex digest in characters (algorithm-dependent).

Exemple

curl -X POST https://x114.org/api/v1/hash \
  -H "Authorization: Bearer sk_..." \
  -H "Content-Type: application/json" \
  -d '{"text":"hello world","algorithm":"SHA-256"}'
Essayez dans le navigateur

L’outil gratuit donne le même résultat sans écrire de code.

Ouvrir l’outil