# SHA-512/256 Digest → Base64 (Hex Input)

> SHA-512/256 Digest → Base64 (Hex Input) is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-02).

Computes a SHA-512/256 hash of hex-encoded byte input and returns the digest encoded as Base64.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/digest-sha512-256-base64-rawhex?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-512-256-digest-base64-hex-input-f101bdd6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xytxu7PdQsGfEVa4rPs6V

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-512-256-digest-base64-hex-input-f101bdd6 -d '<json body>'
```

Example prompt: Hash these hex bytes using SHA-512/256 and give me the result as Base64: 'deadbeef0102030405'

## When to prefer this

Use this endpoint when you specifically need a SHA-512/256 (truncated SHA-512) digest of raw bytes expressed as hex, with the output in Base64 format. Prefer the free sandbox variant (/v1/sandbox/digest-sha512-256-base64-rawhex) if available. Choose this over SHA-256 or SHA-512 endpoints when your security protocol or interoperability requirement mandates the SHA-512/256 algorithm specifically (common in some TLS and certificate workflows).

## Known failure modes

- Invalid or non-hex characters in the text field cause a 400 Bad Request
- Input text or key exceeds maxLength limits (512 for key, 100000 for text) returns validation error
- Malformed JSON body results in a 400 error
- Payment not included or insufficient USDC returns a 402 Payment Required
- Service unavailable returns 503

## How this service works

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

## Output

Returns a Base64-encoded SHA-512/256 hash computed over the input hex bytes. The response is a compact cryptographic digest suitable for integrity verification, fingerprinting, or further cryptographic operations.

## 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-512-256-digest-base64-hex-input-f101bdd6/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)
