@xero what's 'd' ?

EDIT: nvm thanks for fixing it

@wolf480pl a secret integer. both sides of the exchange generate them the same way. but with different values

@wolf480pl Alice and Bob agree on a prime number, p, and a base, g, in advance. For our example, let's assume that p=23 and g=5.

Alice chooses a secret integer a whose value is 6 and computes A = g^a mod p. In this example, A has the value of 8.

Bob chooses a secret integer b whose value is 15 and computes B = g^b mod p. In this example, B has the value of 19.

Alice sends A to Bob and Bob sends B to Alice.

To obtain the shared secret, Alice computes s = B^a mod p. In this example, Alice obtains the value of s=2

To obtain the shared secret, Bob computes s = A^b mod p. In this example, Bob obtains the value of s=2.

The algorithm is secure because the values of a and b, which are required to derive s are not transmitted across the wire at all.

@xero I know how Diffie-Hellmann works.

I was pointing out inconsistent use of variable names

@wolf480pl sorry my meme is not up to standards. was just trying to be funny and make people smile ✌️
@xero sorry for being pedantic... it's a very good meme, which is why I paid attention to it in the first place.
@wolf480pl no worries. and likewise my apologies for assuming you were quizzing me about the value of 'd'.
@xero it's not a real "a", just a "d" with the stem hidden behind a yellow square, but I hope it's close enough
@wolf480pl fixed ty ✌️😆