ALICE

BOB

Das kennt Alice

Das kennt Bob

private key

public key

p = 17
g = 5
a = 6
b = 3
alpha = Mod(g^(a), p)
beta = Mod(g^(b), p)
Text5: "S = " + (Mod[beta^(a), p])
Text6: "S = " + (Mod[alpha^(b), p])
Text7: "g = " + g
Text8: "p = " + p
A = (-2, 7)
B = (-2, 6)
C = (1, 6)
D = (1, 7)
Vieleck1, a_1, b_1, c, d = Polygon(A, B, C, D)
Text3: "α = " + g + "^" + a + " (mod " + p + ") = " + alpha
Text4: "β = " + g + "^" + b + " (mod " + p + ") = " + beta
Text9: "a = " + a
Text10: "b = " + b
e = false
f = false
Text11: "α = " + alpha
Text12: "β = " + beta
E = (-4, 5)
F = (-4, 4)
G = (5, 4)
H = (5, 5)
Vieleck2, e_1, f_1, g_1, h = Polygon(E, F, G, H)
I = Intersect(f_1, e_1)
J = (-4, 3)
K = (5, 3)
L = Intersect(g_1, f_1)
Vieleck3, i, j, k, l = Polygon(I, J, K, L)