Question: IN PYTHON PLEASE ! ! ! Problem 1 : One - Time Pad Implementation Tasks: the encryption and decryption process between two parties, Alice and
IN PYTHON PLEASE Problem : OneTime Pad Implementation
Tasks: the encryption and decryption process between two parties, Alice and Bob.
Alice's Program
Should prompt for a message input plaintext then display the ciphertext, and save both the
ciphertext in hex and the key in hex in separate files.
Bob's Program:
Should read the key and ciphertext from their respective files and display the decrypted
plaintext.
Problem : Implementing ManyTime Pad
Tasks: Modify the onetime pad implementation to encrypt multiple messages with the same key,
simulating a manytime pad scenario. The purpose of this problem is to see if there are any
recognizable patterns by observing the outputs. You can gain insights by changing the plaintexts or
the key to verify your findings. These findings would be useful in the next problem.
The program should encrypt a list of predefined plaintext messages with a single key,
saving the plaintexts, key, and ciphertexts all in hex into a file. You can select of your
favorite messages. Assume the key is long enough to do encryption to all the messages.Problem : Cryptanalysis of ManyTime Pad
Tasks: Develop a strategy to decrypt messages encrypted with a manytime pad. More specifically, assume Eva has collected the ciphertexts and she knew they are generated by the same key. In addition, all the plaintexts are in English. Space, comma, period, and question mark are being used in the plaintext, but no other special characters are allowed. Eva wants to decrypt the last message target message
Collected ciphertexts:
feacecdccbacffbeffdebcbadefafdcbffcffccdefccbeebdaabbecedadbafedfa
feaceaecdcedbeecffeeefeedebfdfaffaeffebefebefbdbebabffdddaafbadabecadfcccfcefdbafefcbccdf
feccacdfdacacffffefeeadeacebaeaecfbdaedcbeafdaabfdeecfcccdffacfafefdcbbbcac
ebabcfccbadfdbdebfaadbfbcfefdefbfaeeccefccffbdaebaafdbbfeccbcccdfdcbdafaaefdfbccd
feacdacfbcaecefbefbdeaeceadefeeafdafcfeccedbafeabaaabcfafccccdaffebbbcabecfdecaedabccab
efcebaadccbefadfabdefcdfadadfaffabcfeebcdedcfbeeaaaaabcfddefcbbbbefcbbdfdcfcdff
feacecdcbdbbfdbacefcffeabcbfefdfcdabfbabdbefccbfabbeefdeddbdfeedcbcfbdbbcabcdecdffcaaecccbe
feacdcdbecccdeabeeebefadfafcffdfbf
feacebdadcbceccdebfebdedaceffdffdafefedaebebfebdfaffdbeccbcfcdeeefdcabecfddebcdebdccaaebbbecdac
feacccaacfafceffcedebfcefebcbeaabbce
Target Message:
fed
