Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program (or if you find it easier, two different programs) to implement two different attacks on RSA and see which works faster. For

write a program (or if you find it easier, two different programs) to implement two different attacks on RSA and see which works faster. For each attack, your program will take as input the public key e, n, and a ciphertext C and produce as output the plaintext M and the total amount of time the attack took to obtain M (a) Attack 1: Here you will factor n to recover the primes p, q such that n = pq. You will then calculate the private key d, n, and then calculate M = C d mod n. You can use the naive and inefficient methods for factoring n, for finding d from e and (n), and for modular exponentiation. Here the output should consist of p, q, d, M. (b) Attack 2: Here you will generate all possible values of M till you find one for which Me = C mod n. You can use the naive and inefficient method for modular exponentiation. Here the output should consist of M. (use either Java or C language)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions