Example of using ECB: Suppose that your plaintext is: 010 110, which are two blocks of 3 bits each. Also, suppose that you are given the following encryption function E(b) as a table:
Plaintext | 000 | 001 | 010 | 011 | 100 | 101 | 110 | 111 |
---|---|---|---|---|---|---|---|---|
Ciphertext | 101 | 010 | 000 | 001 | 111 | 100 | 011 | 110 |
Fun Class Activity: Use the encryption table E(b) to (a) encrypt the blocks: 101 100 (b) decrypt the blocks: 001 010.