Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 2 : Alice s RSA public key is P = ( e , n ) = ( 7 , 4 4 5 3 )
Problem :
Alices RSA public key is P e n 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 qn 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 Gradescope, 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 qn 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
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