Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scenario Suppose that Alice sends a zip file that compresses her message to Bob. The zip file is protected as it is locked with the
Scenario
Suppose that Alice sends a zip file that compresses her message to Bob. The
zip file is protected as it is locked with the password that Alice has chosen. Of
course, Alice does not want the password to be revealed to anyone. So Alice
decides to encrypt the password for the zip file using a symmetric
encryption algorithm that takes sixdigit PIN as input to create a secret
symmetric key and encrypt the password, She believed that it was secure as
the length of the derived secret key was bits. and to send the resulting
ciphertext along with the protected zip file to Bob. Let us call the resulting
ciphertext PWDCiphertext Since Alice told Bob what the sixdigit PIN was
over the phone, Bob could decrypt the received PWDCiphertext and get the
password for unlocking the protected zip file to recover Alices message.
CSIT Security Essentials
However, Charlie, the hacker, was able to capture PWDCiphertext and crack
the password to unlock the protected zip file! Now, Alices message to Bob is
at Charlies hand too.
Your task
Your task is to write a Python program for Charlie to crack the password for
the protected zip file from PWDCiphertext. Once you have found the
password the protected zip file, unzip it and recover Alices message.
To complete the above task, three files are given in the assignment folder on
Moodle:
protectedfile.zip: This is the protected zip file that compresses
Alices message to Bob using the password Alice chose.
PWDCiphertext.text: This is the ciphertext of the password. In other
words, PWDCiphertext is created by encrypting the password for the
protected file.
EncryptPWD.py: This is the Python code for encrypting the password for
the protected file. Note that a digit PIN is used as a symmetric key to
encrypt the password for the protected file in this encryption program.
To get full marks for this question, you need satisfy the following
requirements.
Requirements:
You need to modify the given code Qstart.py to write your program.
After completing code, you rename it to Qanswer.py
Your code should be able to output the found PIN digit and the
password for the protected file on screen.
Write a onepage report in MS Word format which must include Alices
message ie unzipped protected file and why it was possible to crack
the password from PWDCiphertext even if we use the strong symmetric
encryption from Python cryptography module ie Fernet encrypt
Your program must be compliable using Python Compilation failure will
result in at least of deduction of the marks.
Name your report Qreadme.docx or Qreadme.doc
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started