Cryptographic hash of a text string
agent402.tools/api/hash
Cryptographic hash of a text string - sha256 (default), sha512, sha1 or md5 - returned as hex and base64. Use it for content fingerprints, integrity checks and deterministic ids; pure computation, instant.
POST
https://agent402.tools/api/hashUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://agent402.tools/api/hash", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"algo":"sha256","text":"hello world"}),
});
console.log(await res.json());Example input
{
"algo": "sha256",
"text": "hello world"
}