edited by
32,761 views
39 39 votes
In a RSA cryptosystem, a participant $A$ uses two prime numbers $p = 13$ and $q = 17$ to generate her public and private keys. If the public key of $A$ is $35$, then the private key of $A$ is __________ .

13 Answers

44 44 votes
$\phi$(n) = (p-1)*(q-1)=192

encryption key (e) =35

we have to choose decryption key(d) such a way that (d*e)%$\phi$(n) =1

(35*11)%192=1

ANS:11
20 20 votes

Efficient for bigger values

10 10 votes

RSA ALGO

 1. Calculate value of N = P x Q, where P and Q are large prime nos.(given)

  2. Calculate Z = (P - 1) x (Q - 1)

  3. Choose a value for E (Public key) such that E & Z has no common factors other than 1 between them.

  4. Calculate value of D (Private key) such that (E*D - 1 ) MOD Z = 0 , OR (E*D MOD Z = 1)

  5. A's Public key becomes a tuple pair of <N,E>

  6. A's Private key becomes a tuple-pair of <N,D>

  7. Encryption formula (Cipher text): C = messageE MOD N

  8. Decryption formula (Message):  message = CD MOD N

So in the prob. we have P,Q. So we can calc. N & Z

Now,

E*D MOD N  = 1

35*D MOD 192 = 1   ....(eqn)

The above eqn can be written as:

35*D  = 1 + 192 * K ( K = some positive int.)

If we analyse the above eqn. it can be seen that D > 5 since we get a remainder of 1 on MODULUS.

Find a int. value for K such that , 192 * K + 1= 35*D.

Take K = 2, 1 + 192*2=385;  

35*11 which implies D = 11 (ANS)

7 7 votes
From given data, we find-

$\Rightarrow$ $35*d \equiv 1 (mod 192)$

Where $d$ is description key.

Also, we have.

From euclidean theorem,

$11*35-192*2=1$

Comparing with $35x + 192y=1$

We get $x = 11.$ as the value of d.
6 6 votes
(what i did), first i calculated n i.e. 13*17,

then z = (p-1)*(q-1) = 12*16= 192.

to find private key from given public key i.e. e=35 we need to find d which satisfy the equation

                                                                                            e*d = 1(mod z)  or   e*d mod z =1

i focused on z = 192, and try to find which multiple of 192 can give remainder 1 when divided by 35 , luckily i got 192*2= 385

which satisfy 35*11 mod 192 =1.

mp point here is instead of doing a lengthy work, try the simple one GATE will not try to test your calculation skill
Answer:
Position:
Show:

Related questions

41 41 votes
5 answers 5 answers
18.4k
18.4k views
Arjun asked Feb 14, 2017
18,380 views
A sender $S$ sends a message $m$ to receiver $R$, which is digitally signed by $S$ with its private key. In this scenario, one or more of the following security violation...
1 1 vote
1 1 answer
3.0k
3.0k views
Arjun asked Jul 2, 2019
3,024 views
The RSA encryption algorithm also works in reverse, that is, you can encrypt a message with the private key and decrypt it using the public key. This property is used ini...
0 0 votes
1 1 answer
1.5k
1.5k views
ajaysoni1924 asked Mar 19, 2019
1,500 views
Alice and Bob use RSA public key encryption in order to communicate between them.Trudy finds out that Alice and Bob shared one of the primes used to determine thenumber n...
1 1 vote
2 2 answers
3.4k
3.4k views
ajaysoni1924 asked Mar 19, 2019
3,383 views
Using the RSA public key cryptosystem, with a = 1, b = 2 . . . y = 25, z = 26.(a) If p = 5 and q = 13, list five legal values for d.(b) If p = 5, q = 31, and d = 37, find...