Block Cipher Modes of Operation - Electronic Codebook (ECB)

Electronic Codebook (ECB)

The simplest of the encryption modes is the electronic codebook (ECB) mode. The message is divided into blocks and each block is encrypted separately.

The disadvantage of this method is that identical plaintext blocks are encrypted into identical ciphertext blocks; thus, it does not hide data patterns well. In some senses, it doesn't provide serious message confidentiality, and it is not recommended for use in cryptographic protocols at all.

A striking example of the degree to which ECB can leave plaintext data patterns in the ciphertext can be seen when ECB mode is used to encrypt a bitmap image which uses large areas of uniform colour. While the colour of each individual pixel is encrypted, the overall image may still be discerned as the pattern of identically coloured pixels in the original remains in the encrypted version.

Encrypted using ECB mode Modes other than ECB result in pseudo-randomness The image on the right is how the image might appear encrypted with CBC, CTR or any of the other more secure modes—indistinguishable from random noise. Note that the random appearance of the image on the right does not ensure that the image has been securely encrypted; many kinds of insecure encryption have been developed which would produce output just as 'random-looking'.

ECB mode can also make protocols without integrity protection even more susceptible to replay attacks, since each block gets decrypted in exactly the same way. For example, the Phantasy Star Online: Blue Burst online video game uses Blowfish in ECB mode. Before the key exchange system was cracked leading to even easier methods, cheaters repeated encrypted "monster killed" message packets, each an encrypted Blowfish block, to illegitimately gain experience points quickly.

Read more about this topic:  Block Cipher Modes Of Operation

Famous quotes containing the word electronic:

    The car as we know it is on the way out. To a large extent, I deplore its passing, for as a basically old- fashioned machine, it enshrines a basically old-fashioned idea: freedom. In terms of pollution, noise and human life, the price of that freedom may be high, but perhaps the car, by the very muddle and confusion it causes, may be holding back the remorseless spread of the regimented, electronic society.
    —J.G. (James Graham)