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
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