Total Marks: 100
Due: 25th May, 23:59, 2023
Encryption
Assignment 2
In this assignment you will write a program that uses AES encryption for encrypting an image whose size is larger than the AES block size. The desired functionality of your program is that it takes a BMP file and encrypts the file contents using a fixed key (provided below). The encrypted output is then stored as the body of a JPG image file. For a given input file, your program will generate three output JPG files, using Electronic Codebook (ECB), Cipher-Block Channing (CBC) and Cipher Feedback (CFB) modes of operations. . The output files must be valid image files. The input image to be used is uploaded on moodle
Key (128bit) in Hexadecimal format to be used for the AES using ECB, CBC, and CFB modes
770A8A65DA156D24EE2A093277530142
This can be done in any programming language. You can use any AES library that works with your choice of language. You do not need to write a corresponding decryption program for the assignment.
Your submission will have the source code of your program and a maximum two-page report that should detail the following:
• 16 marks: Design of your program. Explain the design of your program and its various components using a diagram.
• 8 marks: ECB output JPG of the input image.
• 8 marks: CBC output JPG of the input image.
• 8 marks: CFB output JPG of the input image.
• 60 marks: Discuss the difference between ECB, CBC, and CFB modes of operation,
and explain how they may have impacted your output results above.
• 8 marks: Source code. (Marked on the following parameters)
Coding style
Logical and easy to follow comments Handling adequate exceptions
Handling incorrect input parameters
Computer Science Tutoring
Assignment submission
A document that has the reports and a zipped file containing the code. Moodle will only accept two files, do not upload individual code files.
Extensions
No extensions will be given unless approved by the Department of Computer Science (https://www.cs.waikato.ac.nz/student-resources/application-for-an-extension-of-deadline ) You can submit late. However, late submissions will be deducted 1mark/ day.
Plagiarism
Credit all sources you refer to. Students found plagiarising will be reported to the disciplinary committee. You are expected to follow the University’s guidelines here: https://www.waikato.ac.nz/students/academic-integrity/student-information/plagiarism. Assignments will be checked against anti-plagiarism checkers.