UGC NET Paper 2 (Computer Science)Hard

In Diffie-Hellman with p = 23 and g = 5, Alice picks a = 6 and Bob picks b = 15. The shared secret key is:

  1. A. 8
  2. B. 19
  3. C. 4
  4. D. 2

Correct answer: D. 2

A = 5^6 mod 23 = 8, B = 5^15 mod 23 = 19, key = 19^6 mod 23 = 2 = 8^15 mod 23.

More UGC NET Computer Science and Applications questions

Exams that ask this topic