Question: Problem 7 . ( Keygen Program ) Write a program called keygen.py that accepts lo ( int ) and h i ( int ) as
Problem Keygen Program Write a program called
keygen.py that accepts lo int and int as commandline arguments, generates publicprivate keys and writes the keys to standard output, separated by a space. The interval specifies the interval from which prime numbers and needed to generate the keys are picked.Problem Encryption Program Write a program called encrypt.py that accepts the publickey n int and e int as commandline arguments and a message to encrypt from standard input, encrypts each character in the message, and writes its fixedwidth binary representation to standard output.Problem Decryption Program Write a program called decrypt.py that accepts the privatekey n int and d int as commandline arguments and a message to decrypt produced by encrypt.py from standard input, decrypts each character represented as a fixedwidth binary sequence in the message, and writes the decrypted character to standard output.Data: Be sure to test your programs thoroughly using files provided under the data folder. For example:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
