# agent-services x402 Hashing & Encoding Tool

> agent-services x402 Hashing & Encoding Tool is a paid API for AI agents from 49112-hjhjtioxvirqvcvo.splox.app, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-02).

Computes cryptographic hashes (SHA-256, SHA-512, SHA-1, MD5, HMAC-SHA-256) and performs Base64 encoding/decoding and JWT decoding for a given input value, paid per-call via x402/USDC.

## Facts

- Endpoint: GET https://49112-hjhjtioxvirqvcvo.splox.app/sha256?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-services-x402-hashing-encoding-tool-e9c3929f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NRW_74xaVGijmQqu5idaJ

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 agent-services-x402-hashing-encoding-tool-e9c3929f
```

Example prompt: Can you compute the SHA-256 hash of the string 'hello world'?

## When to prefer this

Choose this endpoint when an AI agent needs lightweight, per-call cryptographic hashing, HMAC signing, Base64 encoding/decoding, or JWT inspection without deploying local compute — especially in serverless or constrained agent environments where micro-payment via USDC/x402 is acceptable. Ideal for integrity checks, webhook signature verification, token inspection, and encoding tasks within automated pipelines.

## Known failure modes

- Missing required 'v' or 'algo' parameters — returns error field
- Unsupported algorithm value — returns error field
- HMAC-SHA256 requested without 'key' parameter — returns error
- Malformed JWT input when algo=jwt-decode — returns error
- Payment failure via x402 — request rejected before processing

## How this service works

Paid per-call web tools for AI agents: DNS, TLS, robots.txt, hashing, JavaScript rendering and screenshots. Payment over x402 (USDC on Base).

## Output

Returns a JSON object echoing the requested algorithm, plus one or more of: a hex digest string (for SHA/MD5/HMAC algorithms), a result string (for base64 encode/decode), or decoded header and payload objects (for JWT decode), along with input byte count and signature presence flag. On failure, returns an error field describing the problem.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "v",
  "algo"
 ],
 "properties": {
  "v": {
   "type": "string",
   "description": "value to hash/encode/decode"
  },
  "key": {
   "type": "string",
   "description": "HMAC key (hmac-sha256 only)"
  },
  "algo": {
   "type": "string",
   "description": "sha256|sha512|sha1|md5|hmac-sha256|base64enc|base64dec|jwt-decode"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "algo"
 ],
 "properties": {
  "algo": {
   "type": "string",
   "description": "echo of the requested algorithm"
  },
  "error": {
   "type": "string"
  },
  "digest": {
   "type": "string",
   "description": "hex digest for sha256/sha512/sha1/md5/hmac-sha256"
  },
  "header": {
   "type": "object",
   "description": "jwt-decode: decoded header",
   "additionalProperties": true
  },
  "result": {
   "type": "string",
   "description": "base64enc/base64dec output"
  },
  "payload": {
   "type": "object",
   "description": "jwt-decode: decoded payload",
   "additionalProperties": true
  },
  "input_bytes": {
   "type": "integer"
  },
  "signature_present": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-services-x402-hashing-encoding-tool-e9c3929f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 49112-hjhjtioxvirqvcvo.splox.app](https://www.zero.xyz/host/49112-hjhjtioxvirqvcvo.splox.app/llms.txt)
