82trust / 100

Hash

by Hashing, HMAC & Checksum Suite in Security & trust

x402 APIPassing, checked 3 h ago

Give this API any text or binary data and it returns its fingerprint under whichever hash algorithms you choose - SHA-256, SHA-512, MD5, BLAKE2, CRC32 and more. It also signs data with a secret key (HMAC) and safely verifies whether an incoming signature matches, using a timing-safe comparison. Language models cannot hash: they emit a string of the right length and character set that is simply wrong, so every webhook check built on a guessed hash is silently broken.

POST https://hash-hmac.underscoredone.com/hash

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
289 ms typical, 289 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://hash-hmac.underscoredone.com/hash" \
  -H "content-type: application/json" \
  -d '{"algorithms":["sha256","sha512","crc32"],"hmac":{"algorithm":"sha256","expected_signature":"edddd7a6a42a411ab35b993d690cc7bd5d3be3d9262f66fef16ac2be10e0539a","key":"whsec_test_secret_key_123","mode":"verify"},"input":"{\"order_id\":\"A-1029\",\"amount\":4200}","input_encoding":"utf-8","output_encoding":"hex"}'
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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fhash-hmac.underscoredone.com%2Fhash
const res = await pay("https://hash-hmac.underscoredone.com/hash", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"algorithms":["sha256","sha512","crc32"],"hmac":{"algorithm":"sha256","expected_signature":"edddd7a6a42a411ab35b993d690cc7bd5d3be3d9262f66fef16ac2be10e0539a","key":"whsec_test_secret_key_123","mode":"verify"},"input":"{\"order_id\":\"A-1029\",\"amount\":4200}","input_encoding":"utf-8","output_encoding":"hex"}),
});
console.log(await res.json());

Example input

{
  "algorithms": [
    "sha256",
    "sha512",
    "crc32"
  ],
  "hmac": {
    "algorithm": "sha256",
    "expected_signature": "edddd7a6a42a411ab35b993d690cc7bd5d3be3d9262f66fef16ac2be10e0539a",
    "key": "whsec_test_secret_key_123",
    "mode": "verify"
  },
  "input": "{\"order_id\":\"A-1029\",\"amount\":4200}",
  "input_encoding": "utf-8",
  "output_encoding": "hex"
}

Example output

{
  "api_version": "1.0.0",
  "digests": {
    "crc32": "74c679bb",
    "sha256": "aa27c1f5aeb13292cb74153461b1eb3193efe4501c109a99103d304657798cf6",
    "sha512": "f9b133b06a4b7309392429f15108af870c073288f4297b85dba0ebb907f26c71a808abbe1d197f67ad4b7a1ab83507b1ac1774aa0a4295919e7b9697b395be07"
  },
  "hmac": {
    "algorithm": "sha256",
    "computed_signature": "edddd7a6a42a411ab35b993d690cc7bd5d3be3d9262f66fef16ac2be10e0539a",
    "matches": true,
    "mode": "verify"
  },
  "input_bytes": 35
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402289 ms$0.01