# Text Hashing Utility (SHA256/SHA512/SHA1/MD5)

> Text Hashing Utility (SHA256/SHA512/SHA1/MD5) is a paid API for AI agents from built-with-productos-xszv.vercel.app, paid per call via x402, $0.0005/call, status unknown (last checked 2026-10-02).

Computes a cryptographic hash of a given text string using a specified algorithm (SHA256, SHA512, SHA1, or MD5) and returns hex, base64, and byte-length representations.

## Facts

- Endpoint: POST https://built-with-productos-xszv.vercel.app/v1/hash?utm_source=zero.xyz
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/text-hashing-utility-sha256-sha512-sha1-md5-08443e03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aKS-Mp9f_DyRXbe3cCYui

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 text-hashing-utility-sha256-sha512-sha1-md5-08443e03 -d '<json body>'
```

Example prompt: Hash the text 'hello world' using SHA256 and give me the hex digest and base64 output.

## When to prefer this

Choose this endpoint when you need a fast, deterministic cryptographic hash of a text string without managing API keys or complex auth — just pay per call via x402 or MPP. Ideal for AI agents needing on-the-fly hashing for integrity checks, fingerprinting, or deterministic ID generation. Prefer it when you need multiple output formats (hex + base64) in a single call and want to choose from sha256, sha512, sha1, or md5.

## Known failure modes

- Missing 'text' query parameter returns a validation error
- Unsupported algorithm value (not sha256/sha512/sha1/md5) returns a 400 or enum validation error
- Empty string input may return a valid hash of empty content rather than an error
- Payment failure via x402/MPP results in 402 Payment Required before computation
- Using wrong HTTP method (POST vs GET/HEAD/DELETE as specified) may result in 405 Method Not Allowed

## How this service works

Global current weather, hourly forecasts, foreign-exchange rates, EVM reads, and deterministic utilities for AI agents. Pay per call with MPP or x402; no API key.

## Output

Returns a JSON object containing the hex-encoded digest, base64-encoded digest, the byte length of the input, and the algorithm used (e.g. sha256). All four fields are always present in the response.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "text"
     ],
     "properties": {
      "text": {
       "type": "string"
      },
      "algorithm": {
       "enum": [
        "sha256",
        "sha512",
        "sha1",
        "md5"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "2cf24dba5fb0a30e...",
  "bytes": 5,
  "base64": "LPJNul+wow4m6DsqxbninhsWHlwfp0JecwQzYpOLmCQ=",
  "algorithm": "sha256"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/text-hashing-utility-sha256-sha512-sha1-md5-08443e03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from built-with-productos-xszv.vercel.app](https://www.zero.xyz/host/built-with-productos-xszv.vercel.app/llms.txt)
