Question: PLEASE WRITE IN PYTHON USING JUPYTER NOTEBOOK Problem 5: Complete the implementation of the function decryptrSA(c,p,q,m) which depends on modinv (a,m) and the given functions


PLEASE WRITE IN PYTHON
USING JUPYTER NOTEBOOK
Problem 5: Complete the implementation of the function decryptrSA(c,p,q,m) which depends on modinv (a,m) and the given functions digits2letters(digits) and blockSize( n ). When you are done, you can test your function against the given examples. def decryptRSA(cipher, p,q,e) : "" "decrypts cipher, which was encrypted using the key (pq,e) INPUT: cipher - ciphertext as a string of digits p,q - prime numbers used as part of the key n=pq to encrypt the ciphe e - integer satisfying gcd((p1)(q1), e)=1 OUTPUT: The decrypted message as a string of letters "w" pass Utility functions (NO EDITS NECESSARY)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
