Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.0k views
in Computer by (78.8k points)
closed by
In an 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 ______.

1 Answer

0 votes
by (79.1k points)
selected by
 
Best answer

Step:

RSA Algorithm:

1) Calculate value of n = p × q, where p and q are prime no.’s

2) calculate Ø(n) = (p-1) × (q-1)

3) consider d as public key such that Ø(n) and d has no common factors.

4) consider e as private key such that (e × d) mod Ø(n) = 1

5) Cipher text c = message i.e. md mod n

6) message = cipher text i.e. ce mod n

Calculation

Given p =13, q= 17, d = 35

Use step 2 and 4 of RSA algorithm to calculate private key.

Ø(n) = (13 – 1) × (17 – 1) = 12 × 16 = 192

Now,

(e × d) mod Ø(n) = 1

(e × 35) mod 192 = 1

e = 11

So, private key of A = 11

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...