Question: Write a python program A which runs on computer A. Program A reads a provided text file called Assignment1_Input.dat which contains text of approximately 2500

Write a python program A which runs on computer A. Program A reads a provided text file called Assignment1_Input.dat which contains text of approximately 2500 words. You are first required to remove all spaces and punctuation characters from this text file and write it to a new file called Assignment1_Clean.dat, which should contain only lowercase letters. Program A is required to generate 100 random characters which are written to a file key.dat. Program A is then required to use the Vigenere cipher to encrypt the Assignment1_Clean.dat file with the key from the key.dat file and write the result to a file called Assignment1_Encrypt.dat. 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 Assignment1_Encrypt.dat file on a designated port for data communication, to machine B running program B. 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 Assignment1_Encrypt.dat file on a designated port for data communication with machine A running program A. Furthermore, program B is required to use the key to decrypt the Assignment1_Encrypt.dat file and display the result to the screen, in addition to writing it to a file called Assignment1_Decrypt.dat. [Note: Any program A, from a given student, should be able to work with any program B, from another student, and vice versa. This allows students to test their programs in a group of at least two persons. However, each student MUST write program A and B] Include relevant documentation in your submitted 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

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!