# x402 Utils – Cryptographic Hash

> x402 Utils – Cryptographic Hash is a paid API for AI agents from utils.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Computes MD5, SHA-1, SHA-256, SHA-512, SHA3-256, and Keccak-256 hashes of text or binary data (as UTF-8, hex, or base64), returning results in both hex and base64 encodings.

## Facts

- Endpoint: POST https://utils.kagurazaka.dev/v1/hash?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-cryptographic-hash-85505a00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uWulkxmLc4nAIV8uKiLdq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-utils-cryptographic-hash-85505a00 -d '<json body>'
```

Example prompt: Hash the text 'hello world' using SHA-256 and Keccak-256 and give me the results in hex.

## When to prefer this

Choose this endpoint when you need to compute one or more cryptographic hashes of a string or binary payload in a single API call, especially when multiple algorithms are needed simultaneously or when Ethereum-compatible Keccak-256 is required. It is particularly useful for agents that need data integrity checksums, blockchain function selectors, or audit digests without running local code.

## Known failure modes

- Input text exceeds 1 MB limit — request rejected
- Invalid encoding type specified for 'input' field — validation error
- Unrecognized algorithm name in 'algorithms' array — validation error
- Malformed hex or base64 in 'text' field when input encoding is hex or base64 — parse error
- Missing 'text' field — required parameter error

## How this service works

MD5, SHA-1, SHA-256, SHA-512, SHA3-256 and Keccak-256 (Ethereum) of a text, or of bytes given as hex or base64, as hex and base64.

## Output

A JSON object containing the byte count of the input and, for each requested algorithm, an object with 'hex' and optionally 'base64' representations of the digest. For example: {"bytes":5,"sha256":{"hex":"2cf24dba..."},"keccak256":{"hex":"1c8aff95..."}}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "what to hash (up to 1 MB)"
  },
  "input": {
   "enum": [
    "utf8",
    "hex",
    "base64"
   ],
   "type": "string",
   "description": "how text is encoded (default utf8)"
  },
  "algorithms": {
   "type": "array",
   "items": {
    "enum": [
     "md5",
     "sha1",
     "sha256",
     "sha512",
     "sha3-256",
     "keccak256"
    ],
    "type": "string"
   },
   "description": "which hashes (default all)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 5,
  "sha256": {
   "hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
  },
  "keccak256": {
   "hex": "1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-cryptographic-hash-85505a00/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from utils.kagurazaka.dev](https://www.zero.xyz/host/utils.kagurazaka.dev/llms.txt)
