Random Bytes
OperationalRaw verifiable random bytes in hex or base64
API Overview
Raw random bytes are the building block for cryptographic key material, nonces, salts, and initialization vectors. This endpoint exposes the drand beacon's randomness directly, optionally re-encoding to hex or base64. The BLS12-381 proof in every response lets any party confirm the bytes weren't generated by a backdoored PRNG — they're derived deterministically from a publicly verifiable distributed randomness beacon.
Raw Entropy
Bytes derive directly from the drand threshold beacon — no local PRNG involved.
Hex & Base64 Output
Choose the encoding that fits your pipeline — hex for readability, base64 for compact transport.
BLS12-381 Proof
Every response carries the beacon signature so the randomness source can be independently audited.
Up to 1024 Bytes
Enough entropy for any standard cryptographic primitive in a single sub-50ms call.
terminal API Playground
Live Simulationimport requests
url = "https://random.picopayd.codefission.co.uk/api/random/bytes"
params = {"length": 32, "encoding": "hex"}
headers = {"X-PAYMENT": "<402-payment-token>"}
response = requests.get(url, params=params, headers=headers)
print(response.json()) {
"data": "a87619810b1b41e70a01b8f903cf6997c4a2d3b5e9f10234567890abcdef1234",
"length": 32,
"encoding": "hex",
"proof": {
"round": 21543892,
"signature": "95a9...",
"chainHash": "52db9b...",
"timestamp": "2026-03-20T10:00:00Z"
}
} Related Randomness APIs
View all APIs arrow_forwardRandom Number
$0.001 / call
Generate one or more random integers in a custom [min, max] range, verifiable against the drand quicknet BLS12-381 beacon.
Verifiable UUID
$0.001 / call
Generate one or more verifiable UUIDs — v4 (pure random) or v7 (timestamp-prefixed) — backed by drand BLS12-381 randomness.
Random Password
$0.001 / call
Generate strong random passwords using configurable charsets and lengths, derived from the drand League of Entropy beacon with entropy-bit scoring.