Question: Task 3: Encryption Mode Corrupted Cipher Text To understand the properties of various encryption modes, we would like to do the following exercise: 1. Create
Task 3: Encryption Mode Corrupted Cipher Text To understand the properties of various encryption modes, we would like to do the following exercise: 1. Create a text file that is at least 64 bytes long. 2. Encrypt the file using the AES-128 cipher. 3. Unfortunately, a single bit of the 30th byte in the encrypted file got corrupted. You can achieve this corruption using ghex. 4. Decrypt the corrupted file (encrypted) using the correct key and IV. Please answer the following questions: (1) How much information can you recover by decrypting the corrupted file, if the encryption mode is ECB, CBC, CFB, or OFB, respectively? Please answer this question before you conduct this task, and then find out whether your answer is correct or wrong after you finish this task. (2) Explain why. (3) What are the implication of these differences?
Please provide a screenshot.
Note:
OpenSSL. In this lab, we will use openssl commands and libraries. Make sure you have openssl installed in your VM. It should be noted that if you want to use openssl libraries in your programs, you also need to install libssl-dev, the development version of ssl, using the following command: sudo apt-get install libssl-dev Binary editor GHex. In this lab, we need to be able to view and modify files of binary format. Make sure you have GHex installed in your VM. GHex is a hex editor for GNOME that allows the user to load data from any file, view and edit it in either hex or ascii.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
