Diffie-Hellman Key Exchange Experiment
Shared Generator (g):
⚄
Only one party creates this and shares it with their partner
Shared Group (p):
⚄
Only one party creates this and shares it with their partner
Private Key (a):
⚄
Don't share this, it's your private key
Public Key (A = g^a mod p):
This is your public key - share it with your partner
Public Key of Partner (B):
This is the public key your partner shared with you
Common Key (K = B^a mod p):
This is the common private key - your partner should have the same number!
Unsafe Encryption/Decryption (just adds/subtracts K)
Encrypt:
→
Decrypt:
→