Quantum Secure Token Generator
Overview
Generate cryptographically secure tokens using either quantum-derived true randomness (from the CURBy quantum random number generator at University of Colorado Boulder) or standard cryptographic randomness. Supports multiple character sets and configurable token lengths.
Actions
generate
Generate a secure random token.
Required Fields: None (all fields have defaults)
Optional Fields:
length(integer, default: 32) — Token length in characters. Range: 8–256.charset(string, default: "alphanumeric") — Character set for the token. Options:"alphanumeric"— Letters (a-z, A-Z) and digits (0-9)"hex"— Hexadecimal characters (0-9, a-f)"base64"— URL-safe Base64 characters"ascii"— All printable ASCII characters excluding whitespace
source(string, default: "quantum") — Randomness source. Options:"quantum"— True randomness from quantum measurements"standard"— Cryptographically secure pseudo-random generation
Example — Generate a default token:
{
"action": "generate"
}
Example — Generate a 64-character hex token using quantum randomness:
{
"action": "generate",
"length": 64,
"charset": "hex",
"source": "quantum"
}
Example — Generate a short Base64 API key:
{
"action": "generate",
"length": 48,
"charset": "base64"
}
Example — Generate a strong ASCII password:
{
"action": "generate",
"length": 24,
"charset": "ascii",
"source": "quantum"
}
Response includes:
token— The generated token stringlength— Actual length of the generated tokencharset— Character set usedsource— Randomness source used ("quantum" or "standard")
Common Workflows
- Generate an API key — Use
charset: "base64"withlength: 48or higher for URL-safe API keys. - Generate a session token — Use default settings (
charset: "alphanumeric",length: 32) for session identifiers. - Generate a hex token for cryptographic use — Use
charset: "hex"withlength: 64for 256-bit equivalent tokens. - Generate a strong password — Use
charset: "ascii"for maximum character diversity.
Important Notes
- The quantum source provides true randomness derived from quantum measurements. If the quantum source is temporarily unavailable, consider using
"standard"as a fallback. - The standard source uses cryptographically secure generation suitable for production security applications.
- Token length must be between 8 and 256 characters.
- All generated tokens are returned as strings and are not stored — save them immediately after generation.







