CS FundamentalsEasyGATE CS (PYQ pattern)

Alice and Bob use Diffie-Hellman with p = 23 and g = 5. Alice's secret is a = 6 and Bob's is b = 15. What is the shared secret key?

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

Correct answer: A. 2

Alice sends 5^6 mod 23 = 8; Bob sends 5^15 mod 23 = 19. The key is 19^6 mod 23 = 8^15 mod 23 = 2.

More Computer Networks questions

Exams that ask this topic