Question: Write in Python the following functions related to RSA: a. RSA settings: set prime numbers (p ,q) b. Totien: calculate totien for given prime numbers
Write in Python the following functions related to RSA:
a. RSA settings: set prime numbers (p ,q)
b. Totien: calculate totien for given prime numbers
c. ED Exponent: calculate encryption-decryption exponent
d. PK_SK Settings: Assume the keys and check their validity
e. Encrypt: Return the cypher given the plaintext
f. Decrypt: Return the plaintext given the cypher
g. Exponentiation: Return the table of powers of 2 for a given number
Please test and provide screen shots of the output! Thank you!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
