29trust / 100

Crypto Random Generator

by AgentTools in Onchain & crypto

x402 APIFailing, checked 1 h ago

Generate cryptographically secure randomness: passwords with charset rules, hex keys of any byte length, and uniform random integers (rejection sampling, no modulo bias). Never use Math.random for secrets. Use this when an agent needs to cSPRNG passwords, hex keys and uniform integers.

GET https://agenttools-hub.vercel.app/api/v1/crypto/random-generator

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
13.3%
Response time
137 ms typical, 137 ms slowest 5%
Last check
1 h ago: Expected HTTP 402, got 308
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://agenttools-hub.vercel.app/api/v1/crypto/random-generator?length=24&mode=password"
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%2Fagenttools-hub.vercel.app%2Fapi%2Fv1%2Fcrypto%2Frandom-generator
const res = await pay("https://agenttools-hub.vercel.app/api/v1/crypto/random-generator?length=24&mode=password");
console.log(await res.json());

Example input

{
  "length": 24,
  "mode": "password"
}

Example output

{
  "result": {
    "answer": "djebodffkrdcuyidhvxdwric",
    "answerLabel": "24-char password (≈112 bits of entropy)",
    "details": [
      {
        "label": "Charset size",
        "value": "26 symbols"
      },
      {
        "label": "Entropy",
        "value": "≈112 bits"
      },
      {
        "label": "Strength",
        "value": "excellent"
      }
    ],
    "steps": [
      "Charset: 26 symbols",
      "24 uniform draws via rejection sampling",
      "Entropy ≈ 112 bits"
    ],
    "value": null
  },
  "tool": "random-generator"
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
1 h agoExpected HTTP 402, got 30830862 ms-
5 h agoExpected HTTP 402, got 30830877 ms-
10 h agoExpected HTTP 402, got 30830896 ms-
14 h agoExpected HTTP 402, got 30830850 ms-
18 h agoExpected HTTP 402, got 30830896 ms-
22 h agoExpected HTTP 402, got 30830846 ms-
26 h agoExpected HTTP 402, got 30830872 ms-
30 h agoExpected HTTP 402, got 30830869 ms-
34 h agoExpected HTTP 402, got 30830865 ms-
39 h agoExpected HTTP 402, got 30830851 ms-
42 h agoExpected HTTP 402, got 308308108 ms-
46 h agoExpected HTTP 402, got 308308111 ms-
2 days agoExpected HTTP 402, got 30830812 ms-
2 days agoPassed402190 ms$0.002
2 days agoPassed402137 ms$0.002