# Hash & Encode

> Hash & Encode is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Computes MD5, SHA-1, SHA-256, SHA-512, SHA3-256, Keccak-256, BLAKE2b, and CRC32 hashes plus base64 and hex encodings of any text or binary input in a single call.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/util/hash?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hash-encode-4bdd366c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gd71ZFjfyNSRrvA3CvbZw

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-4bdd366c
```

Example prompt: Can you compute the SHA-256 and Keccak-256 hashes of the UTF-8 text 'transfer(address,uint256)' — I need all the common hash digests plus the base64 and hex encodings in one shot.

## When to prefer this

Choose this endpoint when you need multiple hash algorithms and encodings for the same input in a single call, especially for blockchain use cases (Keccak-256 for Ethereum selectors), integrity verification, or when you want to avoid making separate requests to different hashing utilities. It is particularly useful when both cryptographic hashes and encoding conversions are needed simultaneously.

## Known failure modes

- Missing 'text' query parameter returns a validation error
- Invalid encoding value (not utf8, hex, or base64) returns a bad request error
- Malformed hex or base64 input string causes a decoding error
- Overly large input may result in a timeout or payload error

## How this service works

MD5, SHA-1, SHA-256, SHA-512, SHA3-256, Keccak-256, BLAKE2b and CRC32 of a text or hex/base64 bytes, plus base64 and hex encodings, in one call. Use for integrity checks, IDs, signatures and Ethereum selectors.

## Output

Returns a JSON object containing all eight hash digests (MD5, SHA-1, SHA-256, SHA-512, SHA3-256, Keccak-256, BLAKE2b, CRC32) and both base64 and hex encodings of the input, all computed in a single response.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string",
       "description": "Input text or bytes"
      },
      "encoding": {
       "type": "string",
       "description": "utf8, hex or base64"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hash-encode-4bdd366c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
