{"uid":"cap_cdvwONcgl9gg7MeRucmve","slug":"forest-agent-tools-sha-256-sha-512-text-hasher-8dd91269","name":"Forest Agent Tools – SHA-256 / SHA-512 Text Hasher","description":"Machine-readable contract for active Forest paid capabilities. Unsigned paid calls return HTTP 402 with a PAYMENT-REQUIRED x402 challenge.","url":"https://http--forest-gas-station-mainnet--lcjl27p8lmjs.code.run/text/hash?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":102400,"description":"Public text value used to scope this lookup."},"algorithm":{"enum":["sha256","sha512"],"type":"string","description":"Public algorithm value used to scope this lookup."}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"scope":"caller_supplied_text_hash_only","algorithm":"sha256","digest_hex":"example","byte_length":0,"digest_base64":"example","input_encoding":"utf-8"},"meta":{"cache":"miss","provider":"node-crypto","checked_at":"2026-01-01T00:00:00.000Z","duration_ms":0},"version":"1","capability":"text.hash"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ImhJM-7OGOfCfoCOww_Yj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Deterministically hash up to 100 KiB of UTF-8 text with SHA-256 or SHA-512, returning both hexadecimal and Base64 digests with no external network calls.","exampleAgentPrompt":"Hash the text 'hello world, this is my canonical key' using SHA-256 and give me both the hex and Base64 digests.","exampleUseCases":[{"title":"Content fingerprinting for dedup pipeline","prompt":"Hash this article body with SHA-256 so I can store the fingerprint and detect duplicates later: 'The quick brown fox jumps over the lazy dog — an old pangram used in typography.'"},{"title":"Config value checksum for drift detection","prompt":"Compute the SHA-512 hash of this config string so I can compare it against the stored checksum to see if anything changed: 'db_host=prod.db.internal;port=5432;pool=10'"},{"title":"Deterministic ID generation from user input","prompt":"I need a stable, reproducible identifier from the email address 'alice@example.com' — can you SHA-256 hash it and give me both the hex and Base64 versions?"}],"resultDescription":"Returns a JSON object containing the hex-encoded digest, the Base64-encoded digest, and the algorithm name used, computed locally without any external network calls.","failureModes":["Text exceeds 100 KiB limit — request rejected with a 4xx error","Invalid algorithm value (not 'sha256' or 'sha512') — validation error returned","Missing required 'text' or 'algorithm' fields — schema validation error","Payment not attached or insufficient USDC — 402 Payment Required","Non-UTF-8 byte sequences in input — encoding error"],"whenToPreferThis":"Choose this endpoint when you need a deterministic, side-effect-free hash of text data (up to 100 KiB) without trusting a third-party cryptographic service or running local code. Ideal for agents that need reproducible content fingerprints, checksums, or stable IDs from text values in a sandboxed environment. Prefer SHA-512 when collision resistance is paramount; SHA-256 for compact digests. Not suitable for password hashing (no salt/stretching) or HMAC operations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:42:22.060Z","isFirstParty":false,"canonicalSlug":"forest-agent-tools-sha-256-sha-512-text-hasher-8dd91269"}