Question: Code must be written in python 1. Write a python program C which runs on computer A. Program C reads a provided text file called

Code must be written in python

1. Write a python program C which runs on computer A. Program C reads a provided text file called Input.dat.

2. You are first required to remove all spaces and punctuation characters from this text file and write it to a new file called Clean.dat, which should contain only lowercase letters.

2. Use a Caesar Cipher key to encrypt Clean.dat. The resulting file is called Caesar_Encrypt.dat.

3. Finally, program C is required to send the Caesar_Encrypt.dat file on a designated port for data communication to machine B running program D.

4. You are required to use cryptanalysis techniques to decipher the Caesar_Encrypt.dat file as best as you can. Program D should print the decrypted text to the screen.

[Hint: A character frequency distribution has to be used]

Use Socket Port = 2502 for transmission of data

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!