Problem 2: Alice's RSA public key is P = (e.n) = (3.1633). Bob sends Alice the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Problem 2: Alice's RSA public key is P = (e.n) = (3.1633). Bob sends Alice the message by encoding it as follows. First he assigns numbers to characters: A is 3. B is 4. .... Z is 28, a blank is 29, quotation marks: 30, a period: 31. a coma: 32, an apostrophe: 33. Then he uses RSA to encode each number separately. Bob's encoded message is: 872 14 1111 933 27 1331 1527 1527 14 1096 1331 27 109 87 1331 14 1527 1527 1468 729 1331 27 830 27 830 850 27 397 830 1527 109 1527 14 1096 343 830 512 729 1527 109 729 11 95 872 512 14 1527 343 1527 1468 850 343 108 1096 14 27 512 1527 512 216 1468 850 343 1000 1527 1527 1527 1468 1527 736 850 850 343 1096 928 343 343 850 850 27 1331 1468 1111 14 928 1096 108 14 1527 1527 1000 1000 1527 850 Decode Bob's message. Notice that you don't have Bob's secrete key, so you need to "break" RSA to decrypt his message. For the solution, you need to provide the following: (a) Describe step by step how you arrived at the solution: find p and q, o(n) and d. (b) Show your work (the computation) for one number in the message. (c) Give the decoded message (in integers). (d) Give Bob's message in plaintext (also, what does it mean and who said it). (e) To decode the remaining numbers, you need to write a program in C++, test it on Codeforces and attach the code. Your program should : (i) Take three integers, e, n (the public key for RSA), and m the number of characters the message has as inputs to your program. • (ii) Then take m integers as inputs to your program. This will be the encoded message. 1 • (iii) Check to see if the public key is a valid pair. If not, output a single line "Public key not valid!" and quit the program. • (iv) Decode the message. . (v) Output p and q, o(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: A is 3, B is 4, Please upload your code to Codeforces to test. There are two open test cases and 3 hidden ones. If you implement everything correctly, codeforces will say you have 5 points. The link on how to register/submit code for the RSA project is here. Problem 2: Alice's RSA public key is P = (e.n) = (3.1633). Bob sends Alice the message by encoding it as follows. First he assigns numbers to characters: A is 3. B is 4. .... Z is 28, a blank is 29, quotation marks: 30, a period: 31. a coma: 32, an apostrophe: 33. Then he uses RSA to encode each number separately. Bob's encoded message is: 872 14 1111 933 27 1331 1527 1527 14 1096 1331 27 109 87 1331 14 1527 1527 1468 729 1331 27 830 27 830 850 27 397 830 1527 109 1527 14 1096 343 830 512 729 1527 109 729 11 95 872 512 14 1527 343 1527 1468 850 343 108 1096 14 27 512 1527 512 216 1468 850 343 1000 1527 1527 1527 1468 1527 736 850 850 343 1096 928 343 343 850 850 27 1331 1468 1111 14 928 1096 108 14 1527 1527 1000 1000 1527 850 Decode Bob's message. Notice that you don't have Bob's secrete key, so you need to "break" RSA to decrypt his message. For the solution, you need to provide the following: (a) Describe step by step how you arrived at the solution: find p and q, o(n) and d. (b) Show your work (the computation) for one number in the message. (c) Give the decoded message (in integers). (d) Give Bob's message in plaintext (also, what does it mean and who said it). (e) To decode the remaining numbers, you need to write a program in C++, test it on Codeforces and attach the code. Your program should : (i) Take three integers, e, n (the public key for RSA), and m the number of characters the message has as inputs to your program. • (ii) Then take m integers as inputs to your program. This will be the encoded message. 1 • (iii) Check to see if the public key is a valid pair. If not, output a single line "Public key not valid!" and quit the program. • (iv) Decode the message. . (v) Output p and q, o(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: A is 3, B is 4, Please upload your code to Codeforces to test. There are two open test cases and 3 hidden ones. If you implement everything correctly, codeforces will say you have 5 points. The link on how to register/submit code for the RSA project is here.
Expert Answer:
Answer rating: 100% (QA)
Steps in RSA algorithm Consider two large prime numbers p and q Calculate n p q Now public key is gi... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these accounting questions
-
Problem refer to the encoding matrix Encode the message "THE GRAPES OF WRATH" using matrix A. 3 1
-
Problem refer to the encoding matrix The following message was encoded with matrix A. Decode this message: 9 13 40 49 29 34 2 3 22 26 6 9 43 57 29 34 54 74 3 1
-
Alice wants to support her son Bob if he looks for work but not otherwise. Bob wants to try to find a job only if Alice does not support his life of indolence. Their payoff matrix is Alice and Bob...
-
An interest payment of $650 in a 20 percent tax bracket would result in a tax savings of _____.
-
When market rates of interest rise after a fixed-rate security is purchased, the value of the now-below-market, fixed-interest payments declines, so the market value of the investment falls. On the...
-
The treasure of Unisyms Company has accumulated the following budget information for the first two months of the coming year: ____________________________________ March _____________April Sales...
-
In some instances, a temporary restraining order can be granted ex parte (i.e., without notice to the other side) until a hearing for a preliminary injunction can be held. Further investigate CCP 527...
-
An article in Techno metrics by S. C. Narula and J. F. Wellington (Prediction, Linear Regression, and a Minimum Sum of Relative Errors, Vol. 19, 1977) presents data on the selling price and annual...
-
19 Part 2 of 2 Requirea information [The following information applies to the questions displayed below.) Year 1 total cash dividends Year 2 total cash dividends Year 3 total cash dividends Year 4...
-
You have just been hired as a management trainee by Toronto-based Capri Fashions Inc., u nationwide distributor of designer Caps. The company has exclusive distribution of the Caps, and sales have...
-
Answer the following questions about the sphere whose equation is given by x + y + x - 4x + 10y = - 1. Find the radius of the sphere. Radius: r = 71. 2. Find the center of the sphere. Write the...
-
Sandhill Corporation manufactures several types of accessories. For the year, the gloves and mittens line had sales of $489,000, variable expenses of $367,000, and fixed expenses of $142,000....
-
The Cool Watch company sells two products. The company's water-resistant model sells for $100, has a contribution margin of 35%, and generated sales of $100,000. The company's "basic timepiece" sells...
-
A 8 . 2 2 - nC charge is located 1 . 6 3 m from a 4 . 2 6 - nC point charge. ( a ) Find the magnitude of the electrostatic force that one charge exerts on the other.
-
A garden hose can fill a swimming pool in 9 days, and a larger hose can fill the pool in 4 days. How long will it take to fill the pool if both hoses are used?
-
A car is making a trip in a total time of 1 0 4 min. During the first 3 7 min its average speed is 2 8 . 5 mph. What average speed of the rest of the trip is needed if the car\'s overall average...
-
What is the annual interest rate for an account that compounds monthly at a rate of 2.5%? A. OB. C. 2.10% OE. 2.50% 2.53% D. 2.55% 2.58%
-
Decades after the event, Johnson & Johnson (J&J), the 130-year-old American multinational, is still praised for swiftly The company indicated that its response was based on the expectations set forth...
-
On September 14, 2012, Jay purchased a passenger automobile that is used 75 percent in his accounting business. The automobile has a basis for depreciation purposes of $35,000, and Jay uses the...
-
Skyler is covered by his company's health insurance plan. The health insurance costs his company $3,500 a year. During the year, Skyler is diagnosed with a serious illness and the health insurance...
-
Steve Drake sells a rental house on January 1, 2012, and receives $130,000 cash and a note for $55,000 at 10 percent interest. The purchaser also assumes the mortgage on the property of $45,000....
-
Which of the following statements regarding the audit of negotiable notes receivable is not correct? a. Confirmation from the debtor is an acceptable alternative to inspection. b. Physical inspection...
-
To conceal defalcations involving receivables, the auditor would expect an experienced bookkeeper to charge which of the following accounts? a. Sales returns. b. Miscellaneous income. c. Petty cash....
-
An auditor's risk of misstatement of accounts receivable is least likely to increase if there is a. An increase in customer complaints about their accounts. b. A general slowdown in cash collections....
Study smarter with the SolutionInn App