Cryptography
Stream Cipher
Definition
A symmetric cipher that encrypts data one bit or byte at a time by XORing it with a pseudorandom keystream derived from a key and nonce.
Examples
- ChaCha20-Poly1305 is the dominant modern stream-cipher AEAD in TLS 1.3 and QUIC.
- RC4 was historically used in WEP and SSL/TLS but is now disallowed.
Related terms
ChaCha20
A modern stream cipher designed by Daniel J. Bernstein, using a 256-bit key and 96-bit nonce, widely deployed alongside Poly1305 as the AEAD ChaCha20-Poly1305.
Salsa20
A 256-bit-key stream cipher designed by Daniel J. Bernstein in 2005, selected by the eSTREAM portfolio and the direct ancestor of ChaCha20.
Block Cipher
A symmetric cipher that encrypts fixed-size blocks of plaintext with a secret key, usually combined with a mode of operation to handle data of arbitrary length.
Symmetric Encryption
An encryption scheme in which the same secret key is used for both encryption and decryption, offering high speed and strong confidentiality when the key is shared securely.
Encryption
The cryptographic transformation of plaintext into ciphertext using an algorithm and key so that only authorized parties can recover the original data.
Nonce
A "number used once" supplied to a cryptographic algorithm to guarantee freshness and prevent replay or key/IV reuse.