A cultural appendix, outside the Year 5 syllabus, showing how elementary arithmetic (gcd, divisors, congruences) became — from the 1970s onwards — the basis of modern digital security. We introduce congruences modulo nn, Fermat’s little theorem and Euler’s theorem, up to the RSA algorithm: a splendid example of “pure” mathematics that turns out to be unexpectedly applied.