In [[cryptography]], a keystream is a stream of random or pseudorandom characters that are combined with a [[plaintext]] message to produce a [[ciphertext]]. A keystream is seeded by a secret [[key]].