Use the RSA cipher with public key n = 713 = 23 · 31 and e =
43.
(a) Encode 3 and 15 to find their cipher text.
(b) Find the least positive inverse for 43 modulo 660 which is the
decryption key d.
(c) Decode the plaintext for 28, 18 and 129.
Given n=713, p=23, q=31 and e=43
1 < e < (p-1)(q-1) and n = p * q
1< 43 < 660 and 713 = 23 * 31 (hence all values are correct)
Public Key =>(713,43) as (n,e)
Now, Generate the private key,
we know the formula

to find the value of d, we will use the Extended Euclidean Algorithm
step-1) Euclidean Algorithm
|
((p-1)*(q-1))=e*x+r 1) 660=15(43)+15 2) 43=2(15)+13 3) 15=1(13)+2 4) 13=6(2)+1 |
step-2) Back Substitution
|
1=13-6(2) ( from 4) 1=13-6(15-1(13) (from 3) 1=13-6(15)+6(13)=7(13)-6(15) 1=7(43-2(15))-6(15)=7(43)-14(15)-6(15) (from 2) 1=7(43)-20(15) 1=7(43)-20(660-15(43))=7(43)-20(660)+300(15) (from 1) 1=307(43)-20*660 |
now, we know

hence d=307
Private Key-> (307)
(Formula for Cipher conversion)




3 will be encoded as 675



5 will be encoded as 89

Here is the least positive inverse for 43
|
Euclidean Algorithm ----------------------------- ((p-1)*(q-1))=e*x+r 1) 660=15(43)+15 2) 43=2(15)+13 3) 15=1(13)+2 4) 13=6(2)+1 |
|
Back Substitution ------------------------------------- 1=13-6(2) ( from 4) 1=13-6(15-1(13) (from 3) 1=13-6(15)+6(13)=7(13)-6(15) 1=7(43-2(15))-6(15)=7(43)-14(15)-6(15) (from 2) 1=7(43)-20(15) 1=7(43)-20(660-15(43))=7(43)-20(660)+300(15) (from 1) 1=307(43)-20*660 |
Hence, least positive inverse for 43 is 307


|
for 28 --------
x=
Ans is 14 |
|
for 18 --------------
x=
Ans is 9 |
|
for 129 ------------------
x=
Ans is 5 |
*** If you have any doubt regarding the solution please do ask in the comments, else do an upvote. ***
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
Using RSA Implementation:
1. Alice's RSA public key is given by (e, n) = (59, 1189). = (a) Determine Alice's private key (d, n). (b) Bob sends his first message Mi 67 to Alice, encrypting it with RSA using Alice's public key. He obtains a cypher text Cị that gets forwarded to Alice. What is Cį? (c) Bob sends his second message M2 to Alice, encrypting it with RSA using Alice's public key. Eve, who was eavesdropping on the commu-...
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.
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-...
In public key cryptosystems, the RSA is the most commonly used algorithm. Answer the following questions: - 1. In the RSA algorithm, what is the security flaw with choosing e = 1 for the public key? (Hint: the RSA formula for encryption is c = M e mod n). 2.You are given a cipher text C=10 by a user whose public key is e=5, n=35. Break the code.
(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...
Using RSA cipher, public key e=3, private key d=7 Encrypt the following message “Hello there” Decrypt the previous message
Problem 1 Consider the 3-bit block cipher in slide 8-18. Suppose the plaintext is 101101101. If CBC is used with initial vector 110, what will be the resulting ciphertext? Show work, not just the final answer. Problem 2 Consider RSA with public key (n, e) and private key (n, d) where n = 35, e = 5, and d = 29. What is the encryption of m = 34? What is the decryption of c = 34? Show calculations, not...
5.6 Exercise. Describe an RSA Public Key Code System based on the primes and 17. Encode and decode several messages Of coursc, the fun of being a spy is to break codes. So get on your trench coal, pull out your magnifying glass, and begin to spy. The next exercise asks you to break an RSA code and save the world 5.7 Excrcise. You are a secret agent. An evil spy with shallow mumber thery skills uses the RSA Public...
Problem 4. The plaintext P has been encrypted with RSA n = 65, e = 29 to yield the ciphertext C = 3 = P29 mod 65. Find P using the decryption key d, and prove the congruence class of P that solves this congruence is unique.