# Cryptographic Hash API (MD5/SHA-1/SHA-256/SHA-384/SHA-512)

> Cryptographic Hash API (MD5/SHA-1/SHA-256/SHA-384/SHA-512) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Computes a cryptographic hash of any text input using a chosen algorithm (MD5, SHA-1, SHA-256, SHA-384, or SHA-512) and returns the hex digest.

## Facts

- Endpoint: GET https://api.x402node.dev/dev/hash
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-ef37a5ad
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hadvyExcDJfcd9OyxmHmI

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 api-x402node-dev-ef37a5ad
```

Example prompt: Compute the SHA-256 hex digest of the text 'Hello, world!' — I need the hash for a content integrity check.

## When to prefer this

Use this endpoint when you need a straightforward, single-call cryptographic hash of a text string with a choice of algorithm (MD5, SHA-1, SHA-256, SHA-384, SHA-512). Prefer it over HMAC endpoints when no secret key is needed, and over PBKDF2 when you are not stretching a password — this is for general-purpose hashing, integrity checks, deduplication, and content addressing.

## Known failure modes

- Unsupported algorithm name returns an error
- Empty or missing input body causes a 400 bad request
- Payment failure (402) if USDC balance is insufficient
- Network timeout if the service is temporarily unavailable

## How this service works

hash sha256 generator, SHA256 hash generator, SHA-256 hash, generate SHA256 hash, SHA-1 SHA-256 SHA-384 SHA-512 hash, MD5 hash generator, cryptographic hash, hex digest, checksum, message digest generator, file integrity hash, content fingerprint. Compute hash of any text using MD5, SHA-1, SHA-256, SHA-384, or SHA-512. Returns hex digest. For AI agents, integrity checks, deduplication, content addressing. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object containing the chosen algorithm name, the hex digest string of the hashed input, and the input length in bytes.

## Example request

```json
{
 "text": "Hello, world!",
 "algorithm": "SHA-256"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "algo": {
       "type": "string",
       "description": "Algo (optional)"
      },
      "text": {
       "type": "string",
       "description": "Input text (required)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-ef37a5ad/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
