Question

Derive a suitable RSA key pair (in,e) and (n,d) by hand. Pick p and q to...

Derive a suitable RSA key pair (in,e) and (n,d) by hand. Pick p and q to be at least three digits each. Supply an e that is not prime.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Select two prime no's. Suppose P = 131 and Q = 101. Now First part of the Public key : n = P*Q = 13231.

We also need a small exponent say e : But e Must be

An integer.

Not be a factor of n.

1 < e < Φ(n) [Φ(n) is discussed below], Let us now consider it to be equal to 4.

Our Public Key is made of n and e

We need to calculate Φ(n) : Such that Φ(n) = (P-1)(Q-1) so, Φ(n) = 13000

Now calculate Private Key, d : d = (k*Φ(n) + 1) / e for some integer k For k = 2, value of d is 6500.

Lets us encrypt the word "HI"

Convert letters to numbers : H = 8 and I = 9

Thus Encrypted Data c = 89^e mod n. Thus our Encrypted Data comes out to be 839

Now we will decrypt 839 :

Decrypted Data = c^d mod n. Thus our Encrypted Data comes out to be 89

8 = H and I = 9 i.e. "HI".

Add a comment
Know the answer?
Add Answer to:
Derive a suitable RSA key pair (in,e) and (n,d) by hand. Pick p and q to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the RSA algorithm. Let the two prime numbers, p=11 and q=41. You need to derive appropriate public key (e,n) and private key (d,n). Can we pick e=5? If yes, what will be the corresponding (d...

    Consider the RSA algorithm. Let the two prime numbers, p=11 and q=41. You need to derive appropriate public key (e,n) and private key (d,n). Can we pick e=5? If yes, what will be the corresponding (d,n)? Can we pick e=17? If yes, what will be the corresponding (d,n)? (Calculation Reference is given in appendix) Use e=17, how to encrypt the number 3? You do not need to provide the encrypted value.

  • (16 pts) In the RSA public key cryptography system (S,N,e,d,E,D), let p = 347, q =...

    (16 pts) In the RSA public key cryptography system (S,N,e,d,E,D), let p = 347, q = 743, and N = 347 · 743 = 247821. (a) (8 pts) Which of the two numbers 4193, 4199 can be an encryption key, and why? If one of them can be an encryption key e, find its corresponding decryption key d. (b) (8 pts) How many possible pairs (e,d) of encryption and decryption keys can be made for the RSA system? (If you...

  • Suppose that you are computing an RSA key pair.   (Marks 6)        What are ? and ?...

    Suppose that you are computing an RSA key pair.   (Marks 6)        What are ? and ? and ?(?) for an ? = 51?        Find a legal RSA public key pair for this ? and ?.        How many possible values for ?? are there? In a RSA cryptosystem, a person Renee uses two prime numbers p = 13        and q = 17 to generate her public and private keys. If the public key of       Renee is 35, then the...

  • Using RSA algorithm, if p=3 and q=11, k=3, then the public key is equal to (You...

    Using RSA algorithm, if p=3 and q=11, k=3, then the public key is equal to (You may use the formulas below): Select two large prime numbers P, 9 Compute n = pxq v = (p-1) (q-1) • Select small odd integer k relatively prime to v gcd(k, v) = 1 Compute d such that (d k)%v = (k d)%v = 1 Public key is (k, n) Private key is (d, n) . . . Select one: a. (3,11) b. (33,3)...

  • Computing RSA by hand. Let p = 13, q = 23, e = 17 be your...

    Computing RSA by hand. Let p = 13, q = 23, e = 17 be your initial parameters. You may use a calculator for this problem, but you should show all intermediate results. Key generation: Compute N and Phi(N). Compute the private key k_p = d = e^-1 mod Phi(N) using the extended Euclidean algorithm. Show all intermediate results. Encryption: Encrypt the message m = 31 by applying the square and multiply algorithm (first, transform the exponent to binary representation)....

  • Problem 3 In RSA, we will consider what happens when Alice makes the mistake of choosing...

    Problem 3 In RSA, we will consider what happens when Alice makes the mistake of choosing p,q too close together. Her method is as follows. She chooses p a random large prime, and then chooses q to be the smallest prime greater than p . You are Eve, and Alice's public key is (e,n) where e=13 and n is 4149515568880992958512407863691161151012446232242436899995657329690652811412991293413200434314186514261288537546721977134041420919065144782418033157091025480140853599374890776565691 (Make sure to copy all of n, which has 181 digits). Find Alice's private key d using python

  • Alice has the RSA public key (n, e) = (11413, 251) and private key d =...

    Alice has the RSA public key (n, e) = (11413, 251) and private key d = 1651. And Bob also has his own RSA public key (n’, e’) = (20413, 2221) and private key d’ = 6661. Alice wants to send the message 1314 to Bob with both authentication and non-repudiation. Use Maple, calculate what is the ciphertext sent by Alice. And Verify that Bob is able to recover the original plaintext 1314.

  • CIPHER THAT LETS LOOK PA RSA AT USES Two PRIMES p=23 AND q=17 PUBLIC KEY e=3...

    CIPHER THAT LETS LOOK PA RSA AT USES Two PRIMES p=23 AND q=17 PUBLIC KEY e=3 A) PRIVATE DECRYPTING KEY d. FIND IN B) DESCRIBE STEPS HOW TO FIND IS c=165. PLAIN TEXT CIPHERTEXTI IF

  • O-8. (15 points) Bob's simple toy RSA eryptosystem has public key kyub(n, e) (65,5), where n =p,-...

    o-8. (15 points) Bob's simple toy RSA eryptosystem has public key kyub(n, e) (65,5), where n =p,-5x13-65 and e-5. I. Describe the key pair generation procedure for Bob to generate his private key kor- d. With the above given parameters, use EEA to calculate d 2. Describe RSA encryption procedure that Alice uses to encrypt her plaintext message x to its above given parameters, what will be y? ciphertext y before sending the message to Bob. Suppose Alice's message x-...

  • SOLVE cybersecurity Alice creates an RSA key by selecting primes p=5 and q=11. This results in...

    SOLVE cybersecurity Alice creates an RSA key by selecting primes p=5 and q=11. This results in n=55. Alice selects e=21 and wants to encrypt the value 3. The result will be:

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT