Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

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

Code must be written in python

1. Write a python program A which runs on computer A. Program A reads a provided text file called Input.dat. 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. Program A is required to generate 100 random characters which are written to a file key.dat.

3. Program A is then required to use the Vigenere cipher to encrypt the Clean.dat file with the key from the key.dat file and write the result to a file called Encrypt.dat.

4. Program A is required to send the key.dat file on a designated port for key communication, to machine B running program B. Finally, program A is required to send the Encrypt.dat file on a designated port for data communication, to machine B running program B.

5. Program B is required to accept the key.dat file on a designated port for key communication with machine A running program A. Similarly, Program B is required to accept the Encrypt.dat file on a designated port for data communication with machine A running program A.

6. Furthermore, program B is required to use the key to decrypt the Encrypt.dat file and display the result to the screen, in addition to writing it to a file called Decrypt.dat.

Include relevant documentation in your programs.

Use Socket Port = 2500 for transmission of key

Use Socket Port = 2501 for transmission of data

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students explore these related Databases questions