Pseudorandom Generator (PRG)
- •
Definition
- •
a deterministic, efficiently computable function that stretches a short random seed (from ) into a much longer output (in , with ) that "looks random"
- •
- •
Key properties
- •
efficiently computable by a deterministic algorithm — all the randomness lives in the seed, not in itself
- •
the output should be indistinguishable from truly random, to any efficient observer — see Statistical Test
- •
- •
How it's used: building a Stream Cipher
- •
use the seed as the secret key; expand it with into a long pseudorandom pad; XOR that pad with the message, exactly like a One-Time Pad but with a short key — see Stream Cipher
- •
- •