# SHA-256 Digest as Base64 of Raw Hex Bytes

> SHA-256 Digest as Base64 of Raw Hex Bytes is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Computes a SHA-256 hash of raw hex-encoded bytes and returns the digest encoded as base64

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/digest-sha256-base64-rawhex?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-256-digest-as-base64-of-raw-hex-bytes-71a29530
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VvSDnGfB5XEYuFxnZMRG0

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 sha-256-digest-as-base64-of-raw-hex-bytes-71a29530 -d '<json body>'
```

Example prompt: Can you compute the SHA-256 hash of the raw bytes represented by this hex string '4a6f686e446f65' and give me the result as base64?

## When to prefer this

Prefer this endpoint when you need to hash raw binary data that is represented as a hex string and require the output as base64. Use it over alternatives when you explicitly need the combination of hex-input interpretation and base64 output encoding in a single step. Note: a free sandbox version at POST /v1/sandbox/digest-sha256-base64-rawhex should be tried first to avoid the $0.01 cost.

## Known failure modes

- Invalid or odd-length hex string causes a 400 error
- Non-hex characters in input string result in a validation error
- Payment of $0.01 USDC not included leads to 402 Payment Required
- Input exceeding 100,000 character limit rejected with 400
- Missing required fields returns a schema validation error

## How this service works

Call when an agent needs a sha256 digest of hex bytes, encoded as base64. Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/digest-sha256-base64-rawhex first.

## Output

Returns a base64-encoded string representing the SHA-256 digest of the input data interpreted as raw bytes from the given hexadecimal string

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "key": {
   "type": "string",
   "maxLength": 512,
   "minLength": 1,
   "description": "HMAC secret. Required on HMAC SKUs. Omit it for plain digests and checksums. The key is not stored."
  },
  "text": {
   "type": "string",
   "examples": [
    "68656c6c6f"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Message to digest. For raw-hex SKUs this is hex bytes; for utf16 or latin1 SKUs it is decoded with that encoding. Otherwise it is UTF-8 text."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-256-digest-as-base64-of-raw-hex-bytes-71a29530/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
