In: Computer Science
In the Diffie-Hellman key exchange, Alice sends g^x mod p to Bob, and Bob sends g^y mod p to Alice. (1) How do they get a common secret? (2) Suppose an attacker is intercepting their communication, and gets to know g, p, and g^x mod p. Why can’t the attacker figure out x from these data?
SOLUTION-:
Diffie-Hellman key exchange described in the given image and shown how to calculate the common secret key between Alice and Bob using the given information in question-:
ANS - 1 -:
ANS - 2 -: