Electronic Code Book

Electronic Code Book (ECB) is a basic mode of operation in which the encrypted data is produced as a result of applying the encryption algorithm one-by-one to each block of plaintext. This is the most straightforward mode, but it should not be used in practice as it is insecure and can reveal information:

Electronic Code Book mode for block ciphers

The preceding diagram shows that we have plaintext P provided as an input to the block cipher encryption function, along with a key KEY and ciphertext C is produced as output.

Get Mastering Blockchain - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.