# SHA-1 Digest as Base64URL from Raw Hex

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

Computes a SHA-1 hash of raw hex-encoded bytes and returns the digest encoded as base64url

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/digest-sha1-base64url-rawhex?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-1-digest-as-base64url-from-raw-hex-eac8daac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tg3JYwpKLnYadWByluugB

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-1-digest-as-base64url-from-raw-hex-eac8daac -d '<json body>'
```

Example prompt: Can you compute the SHA-1 hash of these raw hex bytes — 48656c6c6f — and give me the result as a base64url string?

## When to prefer this

Choose this endpoint when you specifically need a SHA-1 hash of raw hex-encoded bytes (not plain text) returned in base64url encoding. It is deterministic and has no external dependencies. Use the free sandbox equivalent (/v1/sandbox/digest-sha1-base64url-rawhex) first for testing; pay this $0.001 USDC endpoint only in production. Prefer it over building SHA-1 locally when operating in an agent environment without cryptographic libraries.

## Known failure modes

- Invalid hex input (odd-length string or non-hex characters) returns an error
- Input text exceeding 100,000 characters is rejected
- Missing required 'text' field causes a validation error
- Payment failure (insufficient USDC balance) prevents execution
- Malformed JSON body returns 400 error

## How this service works

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

## Output

Returns a SHA-1 digest of the provided raw hex bytes, encoded in base64url format (no padding characters, URL-safe alphabet). The response is a compact string suitable for embedding in URLs, tokens, or checksums.

## 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-1-digest-as-base64url-from-raw-hex-eac8daac/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)
