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