streamciphers
Stream ciphers are a class of symmetric key ciphers that encrypt plaintext by combining it with a pseudorandom keystream, typically using an XOR operation. They operate on data as a stream rather than in fixed-size blocks, allowing low-latency encryption of inputs of varying length. The security of a stream cipher rests on the keystream being unpredictable and non-repeating; if the same keystream is ever reused with different plaintext, information can be leaked through simple algebraic relations.
Most stream ciphers generate a keystream from a secret key and an initialization vector (IV) or nonce.
Common examples include RC4 (now deprecated due to known biases), the Grain and Trivium families, and modern
Security notes emphasize that reusing a keystream is catastrophic, and implementations must avoid key/IV reuse, side-channel