EBC and CBC modes of operations
Compare EBC and CBC modes of operations? Why one should not use EBC? How the plaintext messages whose length is not a multiple of the block length is encrypted by using CBC?
Sample Answer
Electronic Codebook (ECB) and Cipher Block Chaining (CBC) are two of the most common block cipher modes of operation. They both use a block cipher to encrypt data, but they do it in different ways.
ECB encrypts each block of data independently. This means that the same plaintext block will always produce the same ciphertext block, regardless of its position in the message. This makes ECB vulnerable to a number of attacks, such as known-plaintext attacks and chosen-plaintext attacks.