Text Hash
Hash caller-supplied UTF-8 text deterministically with SHA-256 or SHA-512 and return both hexadecimal and Base64 digests. Input is bounded to 100 KiB, no network request or external provider is used, and Forest never treats a digest as proof of authenticity or password security.
Forest exposes this capability as a deterministic machine-readable API for software agents. Discovery is free; execution uses the canonical paid endpoint below. The live x402 challenge is the source of truth for payment terms.
$0.001 / callPOST /text/hashx402 · Base
Typical agent tasks
This capability is intended for bounded machine decisions such as:
- compute a SHA-256 hash for this text before storing or comparing it
- calculate a SHA-512 digest for a caller supplied string
- turn this UTF-8 text into a deterministic hexadecimal checksum
- get both hex and Base64 cryptographic digests without calling an external service
What Forest guarantees
- SHA-256 and SHA-512 use the Node.js cryptographic hash implementation over exact UTF-8 bytes
- input is bounded to 100 KiB after UTF-8 encoding
- the same text and algorithm always produce the same digest bytes
- no network request, external provider, authentication, wallet or payment-side provider call occurs inside the capability
Boundaries
- authenticity, digital-signature verification or proof that the caller supplied trusted text
- password hashing, salting, key derivation or password-storage suitability
- file hashing, URL fetching or canonicalization of Unicode before hashing
Machine contract
The request and response schemas are published in the canonical OpenAPI document. This page shows a representative input from the same production manifest.
Input example
{
"text": "hello forest",
"algorithm": "sha256"
}
Canonical paid endpoint
https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/hash
Related capabilities
- Text Base64 — Encode bounded caller-supplied UTF-8 text as standard or URL-safe Base64, or decode canonical Base64 back to valid UTF-8 text. Forest performs the transform locally with no network request and rejects invalid encodings, non-UTF-8 decoded bytes, and outputs beyond the 100 KiB byte bound.