Skip to main content

Diffie-Hellman

An asymmetric encryption algorithm created to let two users that are stranger to each other to safely create a shared key over a public channel (like the Internet).

The Diffie-Hellman exchange process is as follows:

  1. The two users agree on a prime number $p$P$ and a generator $g$. These numbers can be freely shared.
  2. Each user then generates a private number, and it's corresponding public key using: $(G^{\text{private number} \mod P$