80trust / 100
Text Hash
by Forest Agent Tools in Security & trust
x402 APIPassing, checked 2 h ago
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. Base mainnet USDC
POST https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/hash
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 43 ms typical, 124 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/hash" \
-H "content-type: application/json" \
-d '{"algorithm":"sha256","text":"hello forest"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhttp--forest-gas-station-mainnet--lcjl27p8lmjs.code.run%2Ftext%2Fhash
const res = await pay("https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/hash", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"algorithm":"sha256","text":"hello forest"}),
});
console.log(await res.json());Example input
{
"algorithm": "sha256",
"text": "hello forest"
}Example output
{
"capability": "text.hash",
"data": {
"algorithm": "sha256",
"byte_length": 0,
"digest_base64": "example",
"digest_hex": "example",
"input_encoding": "utf-8",
"scope": "caller_supplied_text_hash_only"
},
"meta": {
"cache": "miss",
"checked_at": "2026-01-01T00:00:00.000Z",
"duration_ms": 0,
"provider": "node-crypto"
},
"ok": true,
"version": "1"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 41 ms | $0.001 |
| 6 h ago | Passed | 402 | 43 ms | $0.001 |
| 9 h ago | Passed | 402 | 124 ms | $0.001 |
| 14 h ago | Passed | 402 | 128 ms | $0.001 |
| 17 h ago | Passed | 402 | 38 ms | $0.001 |
| 20 h ago | Passed | 402 | 39 ms | $0.001 |
| 25 h ago | Passed | 402 | 96 ms | $0.001 |