
上QQ阅读APP看书,第一时间看更新
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.