ECB mode

Electronic codebook mode: the simplest way to use a block cipher, which encrypts every block separately and so leaks patterns in the data.

Identical blocks encrypt identically, so patterns leak and blocks can be swapped without detection.

In more detail

ECB stands for electronic codebook. Because identical plaintext blocks always give identical ciphertext blocks, repeated structure, such as the outline of an image or repeated database values, stays visible, and blocks can be cut and rearranged without detection. It should never be used for real data, and a review that finds AES in ECB mode should flag it.

Example

Retired: DES, 3DES, RC4, and AES in ECB mode

Related terms

Taught in

References