Comp Sci Diffie Hellman Key Exchange Algorithm? (x,y value)

Click For Summary
The discussion focuses on the technical correctness of the Diffie-Hellman key exchange algorithm, specifically regarding the values chosen for x and y. The user tested the algorithm with p=23, g=5, x=4, and y=5, resulting in a shared secret key of 12. Concerns were raised about potential restrictions on x and y, and whether the outcome was a fluke. It was clarified that the algorithm's correctness can be verified through a specific mathematical relationship involving modular exponentiation. The conversation emphasizes the importance of using reliable resources for understanding the algorithm's implementation.
shivajikobardan
Messages
637
Reaction score
54
Homework Statement
What should be the value of x and y in Diffie Hellman Key Exchange Algorithm?
Relevant Equations
Diffie-Hellman Key Exchange Algorithm
I'm not asking it from "will it be secure" point of view, rather I'm asking textbook kind technically correct or not.

This is the algorithm (in the 3rd step of right figure, it should be generate y, typo)
4G10LfaUD3Aqvtq8qGaDEdc-QKSOH1G7MI7iKtKn_Mwp14BRgQ.png

I took p=23,g=5.
And picked x=4,y=5
I got the secret key as 12 and both got 12, so it looks like the algorithm worked. But were there any restrictions and if this was a fluke?

What I'm aware?
x,y should be random. And x,y range from 1 to p.
 
Physics news on Phys.org
Thread 'Why wasn’t gravity included in the potential energy for this problem?'
I’m looking at the attached vibration problem. The solution in the manual includes the spring potential energy but does NOT include the gravitational potential energy of the hanging mass. Can someone explain why gravitational potential energy is not included when deriving the equation of motion? I tried asking ChatGPT but kept going in circles and couldn't figure out. Thanks!

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K
Replies
8
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
2K
Replies
18
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K