Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Are Block and Stream Ciphers?

Block ciphers encrypt fixed-size chunks of data, stream ciphers produce a keystream that is combined with the plaintext byte by byte. The split shapes how symmetric encryption is used in practice.

Illustration for the cybersecurity term Block and Stream Ciphers
Home / Blog / Cybersecurity Terms / What Are Block and Stream Ciphers?
17 November 2026

What Are Block and Stream Ciphers?

What Are Block and Stream Ciphers?

Symmetric encryption comes in two shapes. A block cipher takes a fixed-size chunk of plaintext, typically 128 bits, and a key, and produces a block of ciphertext of the same size. A stream cipher takes a key and a nonce and produces a long pseudorandom keystream, which is combined with the plaintext one byte or one bit at a time, almost always with XOR. Both are reversible with the same key, and both are fast; the difference lies in how they handle data that is not neatly block-shaped.

How a Block Cipher Behaves

AES is the obvious example, with Camellia, Twofish, and the long-obsolete DES and 3DES making up the rest of the family. Because the cipher only knows how to transform one block, two extra decisions are forced on you:

Block ciphers suit data you can address in pieces. Disk encryption needs to decrypt sector 4,000,000 without touching the preceding four million, which is exactly what XTS mode over AES provides.

How a Stream Cipher Behaves

A stream cipher never pads, never chains, and produces ciphertext the same length as the plaintext. That makes it natural for anything arriving in unpredictable sizes: voice over a radio link, a terminal session, or a video feed. ChaCha20, designed by Daniel Bernstein, is the modern choice; paired with the Poly1305 authenticator in RFC 8439 it is one of the two cipher suites TLS 1.3 actually uses, and it outperforms AES on processors without hardware acceleration, which is why Google deployed it for Android.

The One Rule That Cannot Be Broken

Never use the same key and nonce twice. If two messages are encrypted with the same keystream, XOR the two ciphertexts together and the keystream cancels out, leaving the two plaintexts combined — a problem cryptanalysts have been solving by hand since the 1940s. Every serious stream cipher failure has this shape.

WEP is the textbook case. It wrapped RC4 with a 24-bit initialisation vector, which repeats after a few hours on a busy network, and the Fluhrer–Mantin–Shamir attack of 2001 turned that into full key recovery in minutes. RC4 itself proved biased in its early output, and the IETF formally prohibited it in TLS in RFC 7465 in February 2015. GSM’s A5/1 and Bluetooth’s E0 have both been broken in the field as well.

The Line Between Them Is Thinner Than It Looks

Counter mode turns any block cipher into a stream cipher: encrypt a counter with AES, and use the output as keystream. AES-CTR and AES-GCM are therefore stream constructions built on a block primitive, and they inherit the nonce rule in full. Reusing a GCM nonce does not merely expose plaintext; it also lets an attacker recover the authentication key and forge arbitrary messages.

Block cipherStream cipher
Unit of workFixed block, usually 128 bitsByte or bit
PaddingRequired unless the mode avoids itNone
Random accessYes, with XTS or CTROnly with a seekable counter
Typical useDisks, databases, files, backupsNetwork streams, voice, constrained devices
Modern examplesAES, Camellia, ASCONChaCha20, Salsa20
AvoidDES, 3DES, Blowfish with 64-bit blocksRC4, A5/1, E0

Choosing One in 2026

For almost every application the answer is an authenticated construction rather than a raw cipher: AES-GCM where hardware acceleration exists, ChaCha20-Poly1305 where it does not. Neither gives you anything useful without integrity protection, so do not assemble AES-CTR plus a hand-written MAC unless you have a specific reason and a cryptographer to review it.

Constrained hardware has its own answer. NIST selected ASCON as its lightweight cryptography standard in February 2023 for sensors, RFID tags, and other devices where AES hardware is too expensive; it covers both encryption and hashing in one small design. Legacy 64-bit block ciphers deserve a separate note: the Sweet32 research of 2016 showed that 3DES and Blowfish leak data after roughly 32 GB on a single connection, which is why long-lived VPN tunnels using them should be retired. If you are not sure which ciphers your estate negotiates, a configuration review is a cheap place to start — our network security services enumerate exactly that.

FAQ – Frequently Asked Questions

Is a Stream Cipher Weaker Than a Block Cipher?

Not inherently. ChaCha20 is as trusted as AES and is used alongside it in TLS 1.3. The reputation comes from RC4, A5/1, and WEP, all of which failed through weak design or nonce reuse rather than because they were stream ciphers. A well-designed stream cipher used correctly is a perfectly sound choice.

Why Does Everyone Say Not to Use ECB Mode?

ECB encrypts every identical block to the same ciphertext, so structure in the plaintext survives encryption. Encrypt a bitmap image in ECB and you can still see the picture. In business data it means repeated values, such as a status flag or a national insurance number appearing twice, are visible to anyone who looks at the ciphertext.

Can I Still Use 3DES If It Is Already Deployed?

Treat it as a migration item. NIST disallowed 3DES for new applications after 2023, and its 64-bit block size makes the Sweet32 birthday attack practical on connections carrying tens of gigabytes. Where you cannot replace it immediately, limit session volume and key lifetime, and schedule the move to AES rather than leaving it indefinitely.

What Does Authenticated Encryption Add?

It detects tampering as well as hiding the content. A plain cipher happily decrypts modified ciphertext into garbage or, worse, into something the attacker chose. AES-GCM, ChaCha20-Poly1305, and ASCON produce an authentication tag that fails verification if a single bit changed, which removes padding oracles and bit-flipping attacks in one step.

Related Terms

You May Be Interested In These

What Are EAP and EAP-TLS?

Cybersecurity Terms

17 November 2026

What Are EAP and EAP-TLS?

Read More
What Is an Advanced Persistent Threat (APT)?

Cybersecurity Terms

17 November 2026

What Is an Advanced Persistent Threat (APT)?

Read More
What Is Hydra?

Cybersecurity Terms

17 November 2026

What Is Hydra?

Read More