# Hash Text (MD5 / SHA-1 / SHA-256 / SHA-512)

> Hash Text (MD5 / SHA-1 / SHA-256 / SHA-512) is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Computes a hex digest of any text string using a chosen algorithm: MD5, SHA-1, SHA-256, or SHA-512.

## Facts

- Endpoint: GET https://x402.agentindex.world/hash/hash?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hash-text-md5-sha-1-sha-256-sha-512-74ce554f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__5eTItOn40jay-0YJUphh

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 hash-text-md5-sha-1-sha-256-sha-512-74ce554f
```

Example prompt: Hash the text 'Hello, world!' using SHA-256 and give me the hex digest.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call hash of a text string without managing a local crypto library or runtime environment. Ideal for serverless agents, sandboxed environments, or workflows where installing cryptographic dependencies is impractical. Supports four standard algorithms in a single endpoint, making it versatile for checksums, cache keys, integrity verification, or fingerprinting tasks.

## Known failure modes

- Missing 'text' parameter — returns 400 or validation error
- Invalid 'algorithm' value not matching the enum (md5|sha1|sha256|sha512) — returns 400 validation error
- Empty text string may return empty-string hash (algorithm-dependent behavior)
- Network timeout or service unavailability — no hash returned
- Payment failure via x402 — endpoint returns 402 Payment Required

## How this service works

Compute an MD5, SHA-1, SHA-256 or SHA-512 hex digest of text.

## Output

Returns the hex-encoded digest of the provided text using the requested algorithm (md5, sha1, sha256, or sha512). The response is a deterministic fixed-length hex string: 32 chars for MD5, 40 for SHA-1, 64 for SHA-256, 128 for SHA-512.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "title": "Text"
  },
  "algorithm": {
   "type": "string",
   "title": "Algorithm",
   "pattern": "^(md5|sha1|sha256|sha512)$"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hash-text-md5-sha-1-sha-256-sha-512-74ce554f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
