Example: Diffie - Hellman   Define Public Values:
n =
g =

Both Alice and Bob each pick a private x and compute a public X = gx mod n

AliceBob
Alice chooses a Private Value
Private_A =
Bob chooses a Private Value
Private_B =
 
- or -
 
Alice computes Public Value
Public_A = 654 = 5792 mod (1531)
Bob computes Public Value
Public_B = 1293 = 51266 mod (1531)
 
Alice and Bob exchange Public Values
Alice and Bob each compute Same Master Value
 
Alice computes Master Value 1241 = 1293792 mod (1531)   Bob computes Master Value 1241 = 6541266 mod (1531)

send suggestions to dkerr@mindspring.com


last updated 12-3-2007 by dek