IT lexicon › Security › ECB

ECB

Security På svenska → Updated: 2026-08-03

Encrypt each block on its own. The result is a picture of a penguin that still looks like a penguin.

Electronic Codebook is the most naive mode of operation: split the message into blocks and run the cipher on each independently. That makes it parallelisable and simple, but identical plaintext blocks produce identical ciphertext blocks — patterns in the input survive straight through the encryption.

The standard illustration is the Linux mascot Tux encrypted with ECB: the colours come out wrong but the outlines are as clear as before. In practice it leaks more than pictures — repeated fields in a database, recurring protocol headers, two users with the same password. ECB should never be used for messages, at most for a single block of random data, and appears in the standards mainly for completeness.

← Back to the lexicon