Goal: Experimenting with AES-128 symmetric key cipher. Note: Using Python programming language that provided libraries for AES. Description: PART 1: write a program that uses AES-128 to decrypt a message. The program should be named "decrypt", and should deal with three files that contain the encrypted text as a stream of bytes, the 128-bit key for decryption stored as a stream of bytes, and the outcome of the decryption, respectively. - To test this program, here's an example of an encrypted message (ciphertext.dat) and its 128-bit secret key (key.dat). PART 2: you will try to use "brute force" to decrypt an encrypted message, where you only have the first 96-bits of the 128-bit secret key (last 4 bytes of the secret key are missing!) The program should be called "findk", and should deal with two files that contain the encrypted text as a stream of bytes and the first 96-bits of the key, respectively. The program should print out on standard output the missing 4 bytes of the key in hexadecimal, the decrypted message and the time it took to find the correct key. - To test this part, here is the encrypted file (ciphertext2.dat), and the first 96-bits of the key (partial-key.dat) Hint: the original message starts with the word "Salam". Submission: - Source code for both programs with comments. - A README file with Instructions on compiling/running the programs. - A short report containing the decryption of the message in Part 2 of the assignment, the key used (in hexadecimal) and the time that your program took to solve the problem. - Zip all the above together in one file. Files link: https://drive.google.com/drive/folders/1w3ElCT4PXO-ihKw5fjMuRu5UV1KHQ
Goal:
Experimenting with AES-128 symmetric key cipher.
Note:
Using Python
Description:
PART 1:
write a program that uses AES-128 to decrypt a message. The program should be named "decrypt", and should deal with three files that contain the encrypted text as a stream of bytes, the 128-bit key for decryption stored as a stream of bytes, and the outcome of the decryption, respectively.
- To test this program, here's an example of an encrypted message (ciphertext.dat) and its 128-bit secret key (key.dat).
PART 2:
you will try to use "brute force" to decrypt an encrypted message, where you only have the first 96-bits of the 128-bit secret key (last 4 bytes of the secret key are missing!) The program should be called "findk", and should deal with two files that contain the encrypted text as a stream of bytes and the first 96-bits of the key, respectively. The program should print out on standard output the missing 4 bytes of the key in hexadecimal, the decrypted message and the time it took to find the correct key.
- To test this part, here is the encrypted file (ciphertext2.dat), and the first 96-bits of the key (partial-key.dat) Hint: the original message starts with the word "Salam".
Submission:
- Source code for both programs with comments.
- A README file with Instructions on compiling/running the programs.
- A short report containing the decryption of the message in Part 2 of the assignment, the key used (in hexadecimal) and the time that your program took to solve the problem.
- Zip all the above together in one file.
Files link:
https://drive.google.com/drive/folders/1w3ElCT4PXO-ihKw5fjMuRu5UV1KHQKOk

Trending now
This is a popular solution!
Step by step
Solved in 2 steps









