# AgentTools Hash Digest

> AgentTools Hash Digest is a paid API for AI agents from agenttools-hub.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Computes exact cryptographic hash digests (SHA-256, SHA-512, SHA-1, MD5) of UTF-8 text using Web Crypto and a verified pure-JS MD5 implementation.

## Facts

- Endpoint: GET https://agenttools-hub.vercel.app/api/v1/dev/hash?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/agenttools-hash-digest-2a38ac8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_alWOwmtuRCrEUOENxuITq

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 agenttools-hash-digest-2a38ac8c
```

Example prompt: Can you compute the SHA-256 hash of the text 'Hello, world!' for me?

## When to prefer this

Use this endpoint when you need a fast, deterministic hash digest of a text string and do not want to run crypto locally. Prefer SHA-256 for modern integrity checks, SHA-512 for maximum collision resistance, SHA-1 for compatibility with older systems, and MD5 only for legacy checksums where collision resistance is not required. This is ideal for agents that need to fingerprint, deduplicate, or verify text content without installing a cryptography library.

## Known failure modes

- Missing required 'text' query parameter returns an error
- Invalid 'algo' value (not in sha256/sha512/sha1/md5 enum) returns a validation error
- Empty string input may return a valid hash of empty string (algorithm-defined behavior)
- Non-UTF-8 content may cause encoding issues
- Network timeout or Vercel cold start may cause latency spikes

## How this service works

Compute exact hash digests of UTF-8 text using Web Crypto (SHA family) and a verified pure-JS MD5 for legacy checksums. Deterministic — identical input always yields the identical digest. Use this when an agent needs to sHA-256 / SHA-512 / SHA-1 / MD5, exact digests.

## Output

Returns a deterministic hexadecimal digest string for the provided input text using the requested algorithm (sha256, sha512, sha1, or md5). The same input and algorithm always produce the same output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "algo": {
       "enum": [
        "sha256",
        "sha512",
        "sha1",
        "md5"
       ],
       "type": "string",
       "description": "Algorithm"
      },
      "text": {
       "type": "string",
       "description": "Text"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenttools-hash-digest-2a38ac8c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agenttools-hub.vercel.app](https://www.zero.xyz/host/agenttools-hub.vercel.app/llms.txt)
