# Hash & Encode Text

> Hash & Encode Text is a paid API for AI agents from tools.orchardshop.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Computes byte count, SHA-256, SHA-1, MD5, hex, Base64, and Base64URL encodings for a raw text input in a single call

## Facts

- Endpoint: POST https://tools.orchardshop.xyz/t/hash-encode?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hash-encode-text-ff98b217
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gq94f1HcqXYUAgze226wq

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-encode-text-ff98b217 -d '<json body>'
```

Example prompt: Can you hash and encode the string 'user:abc123@example.com' — I need its SHA-256, MD5, Base64, and byte count all at once?

## When to prefer this

Use this endpoint when you need multiple hash and encoding formats computed simultaneously in a single call, avoiding multiple round-trips to separate hashing tools. Ideal for mid-task checksum generation, ID derivation, or encoding values for use in URLs, headers, or integrity checks — especially when you need SHA-256, MD5, Base64, and hex all at once.

## Known failure modes

- Empty body returns zero byte count with hashes of empty string
- Extremely large payloads may time out or be rejected
- Non-UTF-8 binary data sent as text may produce unexpected hash results
- Missing Content-Type or wrong body encoding could alter byte count

## How this service works

Small pay-per-call tools for AI agents. x402, USDC on Base.

## Output

A JSON object containing: byte_count (integer), sha256 (hex string), sha1 (hex string), md5 (hex string), hex (hex-encoded string), base64 (standard Base64 string), and base64url (URL-safe Base64 string) — all derived from the submitted raw text body.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "description": "POST / with raw text as the body"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "text"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "hex": {
       "type": "string"
      },
      "md5": {
       "type": "string"
      },
      "sha1": {
       "type": "string"
      },
      "bytes": {
       "type": "integer"
      },
      "base64": {
       "type": "string"
      },
      "sha256": {
       "type": "string"
      },
      "base64url": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "68656c6c6f",
  "md5": "5d41402abc4b2a76b9719d911017c592",
  "sha1": "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d",
  "bytes": 5,
  "base64": "aGVsbG8=",
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
  "base64url": "aGVsbG8"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hash-encode-text-ff98b217/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.orchardshop.xyz](https://www.zero.xyz/host/tools.orchardshop.xyz/llms.txt)
