# x402-cent SHA-256 Text Hashing

> x402-cent SHA-256 Text Hashing is a paid API for AI agents from x402-cent.x402-cent.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Computes the SHA-256 hash of a UTF-8 encoded text string (up to 1024 bytes) for a fee of $0.01 USDC via x402 payment.

## Facts

- Endpoint: POST https://x402-cent.x402-cent.workers.dev/sha256?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-cent-sha-256-text-hashing-fc31e79f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3nV-DOL7jOX_gqegov7Sh

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-cent-sha-256-text-hashing-fc31e79f -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the text 'Hello, world! This is my message.' for me?

## When to prefer this

Choose this endpoint when you need a simple, fast, pay-per-use SHA-256 hash of a short text string (≤1024 bytes) without managing cryptographic libraries yourself, or when operating in an environment where x402 micropayment-gated APIs are preferred. Ideal for one-off hashing tasks in agent workflows where spinning up local crypto is impractical.

## Known failure modes

- Input text exceeds 1024 bytes — request rejected with size limit error
- Payment of 0.01 USDC not provided or invalid — request blocked by x402 payment gate
- Invalid UTF-8 encoding in the input body — parsing error returned
- Empty body submitted — may return an error or hash of empty string
- Network timeout on the Cloudflare Worker — transient failure

## How this service works

SHA-256 of text encoded as UTF-8 (maximum 1024 bytes). Costs 0.01 USDC.

## Output

The endpoint returns the SHA-256 hash of the submitted text as a hex-encoded digest string. The input text must be UTF-8 encoded and no longer than 1024 bytes.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-cent-sha-256-text-hashing-fc31e79f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-cent.x402-cent.workers.dev](https://www.zero.xyz/host/x402-cent.x402-cent.workers.dev/llms.txt)
