CyberKit

Stream Cipher

A symmetric cipher that encrypts data one bit or byte at a time.

What it is

A symmetric algorithm that generates a pseudo-random keystream and combines it with the plaintext, usually by XOR, processing data continuously rather than in fixed blocks.

Why it matters

Stream ciphers suit real-time and variable-length traffic, but reusing a keystream (same key and nonce) is catastrophic. It lets an attacker XOR two ciphertexts and strip the encryption entirely.

In practice

ChaCha20 producing a keystream that is XORed with a video feed as it is transmitted.

What to look for

  • Keystream or nonce reuse across messages.
  • RC4 still enabled in TLS or file formats.
  • XOR-looking ciphertext where two messages share a key.

Common mistake

Reusing a key and nonce pair. Two ciphertexts under the same keystream leak their XOR.

Practice it nearby

CyberKit has no tool for this term itself. These are the closest places to practice it.

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

Sources