Diffie-Hellman Key Exchange Demo (via Python)

Prime (p)
Generate (g)
Alice secret (a)
Bob's secret (b)

Alice sends (A)
Bob   sends (B)
Alice computes (X)
Bob   computes (Y)

message:
 

Neil Rieck
Waterloo, Ontario, Canada.
https://neilrieck.net

Caveat: This demo occasionally breaks at this hobbyist site. If you notice any problems then please send me an email
Update: This demo broke after I migrated this system from CentOS7 to AlmaLinux8 (via ELevate) which introduced a new version of Apache. While cgi scripting continued to work via http, it failed via https).


Additional information for inquiring minds