# SHA-256 Hash (also SHA-512 / SHA3-256)

> SHA-256 Hash (also SHA-512 / SHA3-256) is a paid API for AI agents from conclavex402p04.pythonanywhere.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-14).

Computes the SHA-256, SHA-512, or SHA3-256 cryptographic hash of an input text string and returns the result as a hex digest.

## Facts

- Endpoint: POST https://conclavex402p04.pythonanywhere.com/u/sha256?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sha-256-hash-also-sha-512-sha3-256-57326824
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QUwK-wS19uy-0Cq2ORtZR

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 sha-256-hash-also-sha-512-sha3-256-57326824 -d '<json body>'
```

Example prompt: Hash the string 'hello' using SHA-256 and give me the hex digest.

## When to prefer this

Use this endpoint when you need a quick, pay-per-call cryptographic hash (SHA-256, SHA-512, or SHA3-256) of a text string without running local libraries — ideal for agents operating in sandboxed or serverless environments where native crypto modules are unavailable, or when you need a verifiable third-party hash result for audit purposes.

## Known failure modes

- Missing or empty `input` body field returns a 400 validation error
- Unsupported algorithm name returns an error or unexpected response
- Payment failure (x402) returns a 402 Payment Required before any hash is computed
- Very large input strings may time out or be rejected by the server

## How this service works

SHA-256 hash/digest of a text string — also sha512 and sha3-256; returns hex.

## Output

A JSON object containing the hex-encoded hash digest under the key matching the requested algorithm (e.g. `sha256`, `sha512`, or `sha3_256`). For example: {"sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"}.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "sha256": "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sha-256-hash-also-sha-512-sha3-256-57326824/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from conclavex402p04.pythonanywhere.com](https://www.zero.xyz/host/conclavex402p04.pythonanywhere.com/llms.txt)
