Comment

Comment by anon_tor_12345

diffie-hellman key change for anyone:

given large prime p, some a, some b:

1. A = g^a mod p

2. B = g^b mod p

3. exchange A,B

4. B^a mod p = (g^b)^a mod p = (g^a)^b mod p = A^b mod p is the shared key.

the end

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton