Example
List powers of a public base modulo a prime.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
p, public base g(23, 5)
Step 2 — Power 1
Compute the highlighted cryptography value.
k, g power k mod p(1, 5)
Step 3 — Power 2
Compute the highlighted cryptography value.
k, g power k mod p(2, 2)
Step 4 — Power 3
Compute the highlighted cryptography value.
k, g power k mod p(3, 10)
Step 5 — Power 4
Compute the highlighted cryptography value.
k, g power k mod p(4, 4)
Step 6 — Power 5
Compute the highlighted cryptography value.
k, g power k mod p(5, 20)
Step 7 — Power 6
Compute the highlighted cryptography value.
k, g power k mod p(6, 8)
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.