# Agent Data Tools: Text Hashing (SHA256/SHA1/SHA384/SHA512)

> Agent Data Tools: Text Hashing (SHA256/SHA1/SHA384/SHA512) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Hashes an input text string using a specified algorithm (SHA256, SHA1, SHA384, or SHA512) and returns the hex and base64 encoded digest

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/hash?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-text-hashing-sha256-sha1-sha384-sha512-b82c159a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2Csb1NqgUQd4H75_F3dVY

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 agent-data-tools-text-hashing-sha256-sha1-sha384-sha512-b82c159a
```

Example prompt: Can you compute the SHA256 hash of the text 'hello world' and give me both the hex and base64 versions?

## When to prefer this

Use this endpoint when you need a quick, stateless cryptographic hash of a text string without setting up a local library or environment. Ideal for AI agents operating in environments without native crypto access (e.g. sandboxed runtimes), or when you need a pay-per-use utility with no API key. Supports SHA1, SHA256, SHA384, and SHA512 with both hex and base64 output in a single call.

## Known failure modes

- Missing 'text' query parameter returns an error — text is required
- Unsupported algorithm value (not sha256, sha1, sha384, sha512) may return an error or default to sha256
- Empty string input is accepted but may return a well-known fixed hash
- Network timeout from Cloudflare Worker is possible but rare; failed calls are not charged

## How this service works

Hash UTF-8 text with SHA-256 (default), SHA-1, SHA-384 or SHA-512 and return the digest in hex and base64. Use for checksums, cache keys and deduplication.

## Output

Returns a JSON object with three fields: 'hex' (the lowercase hexadecimal digest of the input text), 'base64' (the base64-encoded digest), and 'algorithm' (the algorithm used, e.g. 'sha256'). The response confirms which algorithm was applied alongside both standard encodings of the hash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to hash"
  },
  "algorithm": {
   "type": "string",
   "description": "sha256 (default), sha1, sha384 or sha512"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hex": {
   "type": "string"
  },
  "base64": {
   "type": "string"
  },
  "algorithm": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-text-hashing-sha256-sha1-sha384-sha512-b82c159a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
