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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Expected HTTP 402, got 308 | 308 | 62 ms | - |
| 5 h ago | Expected HTTP 402, got 308 | 308 | 77 ms | - |
| 10 h ago | Expected HTTP 402, got 308 | 308 | 96 ms | - |
| 14 h ago | Expected HTTP 402, got 308 | 308 | 50 ms | - |
| 18 h ago | Expected HTTP 402, got 308 | 308 | 96 ms | - |
| 22 h ago | Expected HTTP 402, got 308 | 308 | 46 ms | - |
| 26 h ago | Expected HTTP 402, got 308 | 308 | 72 ms | - |
| 30 h ago | Expected HTTP 402, got 308 | 308 | 69 ms | - |
| 34 h ago | Expected HTTP 402, got 308 | 308 | 65 ms | - |
| 39 h ago | Expected HTTP 402, got 308 | 308 | 51 ms | - |
| 42 h ago | Expected HTTP 402, got 308 | 308 | 108 ms | - |
| 46 h ago | Expected HTTP 402, got 308 | 308 | 111 ms | - |
| 2 days ago | Expected HTTP 402, got 308 | 308 | 12 ms | - |
| 2 days ago | Passed | 402 | 190 ms | $0.002 |
| 2 days ago | Passed | 402 | 137 ms | $0.002 |