Example
Compute phi for a two-prime RSA modulus.
highlighted = computed this step
Step 1 — Set up
Set up the exact toy cryptography values.
p, q(5, 11)
Step 2 — Factors
Compute the highlighted cryptography value.
p-1, q-1(4, 10)
Step 3 — Totient
Compute the highlighted cryptography value.
phi40
cryptography
The values in this lesson are deliberately tiny so every modular arithmetic step can be checked exactly.