News for hackers. Stuff that matters.
Re:Show HN: Diffie-Hellman exchange for the layman by andyjohnson0 on Thursday April 22, 2021 @04:21AM (#26900210)
What is g here?
Re:Show HN: Diffie-Hellman exchange for the layman by a_imho on Thursday April 22, 2021 @04:52AM (#26900405)
Unfortunately I had to check it as well, and g seems to be a generating element of a finite cyclic group G

https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exc...

Re:Show HN: Diffie-Hellman exchange for the layman by libeclipse on Thursday April 22, 2021 @10:26AM (#26903108)
Diffie Hellman Key Exchange is performed over a cyclic group. That's just a large set of elements that wrap back around to each other. So for example the integers mod 7 is {0, 1, 2, 3, 4, 5, 6}. A generator for this group is any element that you can continuously add to generate the whole group, for example: 1.

In the case of DH, g is some such element.