API 개요로 돌아가기

hash

POST1 크레딧

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.

엔드포인트

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

요청 본문

POST 본문에 JSON으로 전송합니다.

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

응답 본문

성공 시 반환되는 JSON (HTTP 200).

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

예시

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"}'
브라우저에서 시도

무료 도구는 코드 작성 없이 동일한 결과를 제공합니다.

도구 열기