# Agent402 UK Hash Digest

> Agent402 UK Hash Digest is a paid API for AI agents from agent402.co.uk, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes SHA-256, SHA-1, MD5, or SHA-512 hex digests of arbitrary UTF-8 text strings

## Facts

- Endpoint: POST https://agent402.co.uk/v1/utils/hash
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-uk-hash-digest-9ce7e528
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_F-Np2CaX4k78zd76kY0sc

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 agent402-uk-hash-digest-9ce7e528 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hex digest of the string 'Hello, World!'?

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, on-demand cryptographic hash during a task — especially for integrity checks, deduplication, or fingerprinting text values — without needing a local hashing library. Particularly useful in agentic pipelines where the agent runtime lacks native crypto utilities or where consistent, auditable hashing via an external service is preferred.

## Known failure modes

- Unsupported algorithm value returns an error — must be sha256, sha1, md5, or sha512
- Empty or missing text field may return a validation error
- Very large text inputs may time out or be rejected
- Non-UTF-8 encoded binary content may produce incorrect results

## How this service works

Don't burn tokens on deterministic work. Go/no-go jobs first: payout preflight, text firewall (PII/secrets), budget check — then rails, calendars, finmath. x402 USDC on Base. UK + global. agent402.co.uk — not agent402.tools. $0.001–$0.002 USDC on Base. No API keys.

## Output

Returns a hex-encoded digest string corresponding to the chosen algorithm (sha256, sha1, md5, or sha512) applied to the provided UTF-8 input text.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text to hash"
  },
  "algorithm": {
   "type": "string",
   "description": "sha256 | sha1 | md5 | sha512 (default sha256)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "bytes": 5,
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-uk-hash-digest-9ce7e528/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.co.uk](https://www.zero.xyz/host/agent402.co.uk/llms.txt)
