Diffie-Hellman Cheat SheetDiffie-Hellman Cheat Sheet
@egeuysall · May 5, 2026
Setup
- public numbers: g and p
- Alice secret: a
- Bob secret: b
Alice Sends
Bob Sends
Shared Secret
Alice calculates:
Bob calculates:
Key Reminder
- Alice and Bob should get the same secret number