Modes of block ciphers
Block cipher modes are a way in which a block of data is encrypted to ciphertext.
There are various modes available and each mode has a different way of encrypting the block of data into ciphertext.
The simplest one of them is the Electronic Cookbook (ECB) mode.
In the ECB mode, the plaintext data is divided into blocks and each block is encrypted with a secret key. The results of these blocks are combined together to form the ciphertext.
In the following example, the plaintext data is positive is the way, that is, combined into two blocks and each of them is encrypted separately. The result of each block is combined to form the overall ciphertext data:
The disadvantages of ECB is that identical plaintext blocks lead ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access