Diffie-Hellman Example


Sender
knows does not know
p = 5 b = 4
base g = 2
a = 3
23 mod 5 = 3
2b mod 5 = 1
13 mod 5 = 1
3b mod 5 = 1
13 mod 5 = 3b mod 5
s = 1
Recipient
knows does not know
p = 5 a = 3
base g = 2
b = 4
24 mod 5 = 1
2a mod 5 = 3
34 mod 5 = 1
1a mod 5 = 1
34 mod 5 = 1a mod 5
s = 1
Eavesdropper
knows does not know
p = 5 a = 3
base g = 2 b = 4
s = 1
2a mod 5 = 3
2b mod 5 = 1
1a mod 5 = s
3b mod 5 = s
1a mod 5 = 3b mod 5

What is RSA encryption?

© 2006 John Michael Pierobon

Notes