What

  1. Alice has a secret key and a public key
  2. Bob has a secret key and , calculate the cipher and
  3. With the cipher, Alice knows and thus can decrypt the text but Eve won’t know since Eve don’t know both and

Note that (egcd)

How

Why