# Alice's Deterministic Toolkit – Hash Endpoint

> Alice's Deterministic Toolkit – Hash Endpoint is a paid API for AI agents from alice-deterministic-tools.judicious-entrance.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-18).

Computes a cryptographic hash of input text using a specified algorithm and returns the digest in the requested encoding

## Facts

- Endpoint: POST https://alice-deterministic-tools.judicious-entrance.workers.dev/v1/hash
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alice-s-deterministic-toolkit-hash-endpoint-39713b44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__2W1UoT2n__fzMkAfHtz6

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 alice-s-deterministic-toolkit-hash-endpoint-39713b44 -d '<json body>'
```

Example prompt: Hash the text 'hello world' using SHA-256 and give me the result as a hex digest.

## When to prefer this

Choose this endpoint when you need a deterministic, server-side hash with no local cryptography library — ideal for agents running in environments without native crypto access. Prefer it over HMAC or randomness endpoints when you need a simple, keyless hash. It is pay-per-call via x402 so no API key management is needed.

## Known failure modes

- Unsupported algorithm name returns an error response
- Missing 'text' field results in a validation error
- Invalid encoding value (not hex/base64/etc.) may return an error or default
- Payment not attached or insufficient USDC causes x402 payment-required response
- Empty string input is accepted but may produce a trivial digest

## How this service works

Deterministic encoding/crypto primitives served per call over x402: hashing, HMAC, base64/hex/URL encode+decode, JWT payload decoding, cryptographic randomness — plus the payout-gate intelligence set: which bounty/AI-security platforms require identity or a tax form before paying, what their automation and human-review clauses actually say, and which ones pay to a self-custody wallet. No model inference, no rate of change — same input, same output, every time.

## Output

Returns a JSON object with ok:true, the algorithm used, the hex (or base64) digest of the input, the encoding format, and the number of input bytes processed. Same input always yields the same output — no randomness or model inference involved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "algo": {
   "type": "string"
  },
  "text": {
   "type": "string"
  },
  "encoding": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "algo": "sha256",
  "digest": "ba7816bf…",
  "encoding": "hex",
  "input_bytes": 3
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alice-s-deterministic-toolkit-hash-endpoint-39713b44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from alice-deterministic-tools.judicious-entrance.workers.dev](https://www.zero.xyz/host/alice-deterministic-tools.judicious-entrance.workers.dev/llms.txt)
