Question: Program must be written in python. Write a python program A which is required to send a file key.dat on a designated port for key

Program must be written in python.

Write a python program A which is required to send a file key.dat on a designated port for key communication, to machine B running program B. Additionally, program A is required to send a file Encrypt.dat on a designated port for data communication, to machine B running program B. The 'key.dat' file contains 100 random characters and the 'Encrypt.dat' file was encrypted using the Vigenere cipher with the key from the 'key.dat' file.

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

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!