# VYTREL Control SHA-256 Hashing

> VYTREL Control SHA-256 Hashing is a paid API for AI agents from vytrel-control.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Computes the SHA-256 cryptographic hash of a given UTF-8 text string and returns the hex digest along with metadata.

## Facts

- Endpoint: GET https://vytrel-control.vercel.app/api/sha256?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vytrel-control-sha-256-hashing-d6e1794c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ODurgHSA4ASwY0gYDaGdf

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 vytrel-control-sha-256-hashing-d6e1794c
```

Example prompt: Can you compute the SHA-256 hash of the text 'hello' and give me the hex digest?

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call SHA-256 hash of a text string without setting up any local crypto library or infrastructure. Ideal for lightweight agent workflows that occasionally need hashing without a persistent backend.

## Known failure modes

- Missing 'text' query parameter returns an error
- Non-UTF-8 or malformed input may produce unexpected results
- Payment of 0.001 USDC required per call; missing or invalid payment returns 402
- Network timeout on Vercel cold start

## How this service works

Machine-payable URL observations and Base wallet reads, with x402 settlement receipts.

## Output

Returns a JSON object containing the SHA-256 hex digest of the input text, the byte length of the input, the encoding used (utf8), and the algorithm name (sha256). Example: {"bytes": 5, "encoding": "utf8", "algorithm": "sha256", "digestHex": "2cf24dba..."}

## 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": {
      "text": {
       "type": "string",
       "description": "UTF-8 text to hash"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "algorithm",
      "encoding",
      "bytes",
      "digestHex"
     ],
     "properties": {
      "bytes": {
       "type": "number"
      },
      "encoding": {
       "type": "string"
      },
      "algorithm": {
       "type": "string"
      },
      "digestHex": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bytes": 5,
  "encoding": "utf8",
  "algorithm": "sha256",
  "digestHex": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vytrel-control-sha-256-hashing-d6e1794c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vytrel-control.vercel.app](https://www.zero.xyz/host/vytrel-control.vercel.app/llms.txt)
