Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

The report must be converted to PDF format and submitted through the submission link in Moodle.

Task 1: Frequency Analysis (20 marks) Decipher the ciphertext given in MOODLE. The ciphertext was created using a substitution cipher. Explain how you discovered the encryption key. Write the encryption key in the following format in your report:


Was your approach in discovering the encryption key be same as the one in lab exercise? Explain why.

Task 4: Padding (10 marks)

Use the three files provided in MOODLE, which contain 5 bytes, 10 bytes, and 16 bytes, respectively. Use ECB, CBC, CFB, and OFB modes to encrypt each file. Please report which modes have paddings and which ones do not. For those that do not need paddings, please explain why. (Instruction given in the lab manual will be useful)

Task 5: Error Propagation – Corrupted Cipher Text (20 marks)

Use the Task 5 plaintext provided in Moodle. Encrypt the file using AES-128 cipher in ECB, CBC, CFB, and OFB modes using the key and IV provided in Moodle. Corrupt a single bit (you choose your own bit) of the 55th byte in the encrypted file. As explained during the lab session, you can achieve this corruption using a hex editor (I used ghex during the lab demo, you may use whichever you feel comfortable using). Decrypt the corrupted ciphertext file using the same key and IV. How much information can you recover by decrypting the corrupted file in each of the modes of operation? Please provide justification.