Question: Alice s RSA public key is P = ( e , n ) = ( 7 , 4 8 9 1 ) . Bob sends
Alices RSA public key is P en Bob sends Alice the message by encoding it as follows. First he assigns numbers to characters: A is B is Z is a blank is quotation marks: a coma: a period: an apostrophe: Then he uses RSA to encode each number separately.
Bobs encoded message is:
Decode Bobs message. Notice that you only know Alices public key, but dont know the private key. So you need to break RSA to decrypt Bobs message. For the solution, you need to provide the following:
a Describe step by step how you arrived at the solution: show how to find p and qphi n and d
b Show your work for one integer in the message M : the expression, the decrypted integer, the
character that it is mapped to
c To decode the remaining numbers, you need to write a program in Csee below test it in Grade scope, and append the code to HW Problem solutions.
d Give the decoded message in integers
e Give Bobs message in plaintext. What does it mean and who said it
For part c Your program should :
i Take three integers, e n the public key for RSA and m the number of characters in the message as input to your program. Next, input the ciphertext.
ii Test whether the public key is valid. If not, output a single line Public key is not valid! and quit the program.
iv If the public key is valid, decode the message.
v Output p and qphi n and d
vi On a new line, output the decoded message in integers.
vii On a new line, output the decoded message in English. The characters should be all uppercase. You can assume that the numbers will be assigned to characters according to the mapping above.
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
