Cryptographically Secure PRNG
Also called CSPRNG, Secure Random.
A random generator suitable for keys, nonces, and tokens.
What it is
A pseudo-random number generator whose output is unpredictable even to an attacker who sees prior outputs, seeded from a high-entropy source. It is the only acceptable randomness source for cryptographic material.
Why it matters
Keys, IVs, salts, and session tokens are only as strong as the randomness behind them: a predictable or weakly seeded generator has broken real systems by making keys guessable. Auditing for non-cryptographic random use is a standard review step.
In practice
Generating session tokens from a CSPRNG rather than a fast but predictable general-purpose random function.
What to look for
- Tokens or keys generated with Math.random, rand or time seeds.
- Session IDs that look sequential or predictable.
- Containers or VMs cloned with the same random state.
Common mistake
Using a normal random function for secrets. It can be predicted; use the OS cryptographic generator.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Decoder
Paste any opaque value. It names what it looks like and why, then decodes it: Base64 and other layers, number bases, hashes, JWTs, certificates, SIDs, User-Agents and MAC addresses.
- Decode Range
Name an opaque value before you read it: timestamps, encodings and hashes, all generated by the site's own converters.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
OpenSSL Open source
The command line toolkit for inspecting certificates, keys and TLS connections.
-
HashiCorp Vault Source available
Manages secrets and encryption keys, and can encrypt data as a service.
-
AWS Key Management Service Cloud service
AWS's managed service for creating and controlling encryption keys.
Read next
- Nonce / Initialization Vector: A unique value that makes each encryption operation distinct.
- Key Derivation Function: A deliberately slow function that turns a password into a key or hash.
- Stream Cipher: A symmetric cipher that encrypts data one bit or byte at a time.