From Diophantus to Digital Locks: Equations Behind Cryptography
Equations aren’t just classroom exercises; they’ve shaped the way we communicate and protect information for centuries. What started as integer puzzles in ancient Alexandria now underpins modern cryptography—the system that keeps your emails, messages, and bank details safe from prying eyes. Let’s follow the surprising journey from dusty papyrus scrolls to cutting-edge digital locks.
Where did this come from?
In the third century AD, the mathematician Diophantus of Alexandria tackled problems now called Diophantine equations—questions like “find whole numbers x and y that make 2x+3y=17 true.” They weren’t about spies or secrets, just satisfying puzzles. Fast forward to the 1970s, when mathematicians and computer scientists such as Rivest, Shamir, and Adleman realized you could use huge versions of these number puzzles to hide messages. Their RSA algorithm—relying on the challenge of factoring a huge number into primes—sparked the era of public-key cryptography.
Where you'll see this in real life
1. Online banking: Every time you log into your account, your browser uses equations to scramble data so only the bank can read it. 2. Secure messaging apps: Apps like Signal or WhatsApp use math to ensure that only you and your friend can read your texts—even the company can’t peek. 3. Digital signatures: When you download software or open an e-ticket, equations verify that the file really came from the right source and wasn’t tampered with. 4. Smart devices and IoT: Your smart thermostat or doorbell camera uses lightweight cryptographic equations to send data without letting hackers hijack your home network.
A common misconception
It’s easy to think cryptography is all high-falutin computer code, but at its core it’s nothing more than equations about numbers and letters. There’s no magic—just clever ways to transform a message so that only someone with the right “key” equation can turn it back into plain text. Understanding that makes it a lot less intimidating when you’re tackling number puzzles or learning about modulo arithmetic in class.
Ready to practise?
Turn this idea into a short Mathyard worksheet with instant questions and worked solutions.
Generate a worksheet on this topicMathyard Team
The Mathyard team builds tools to help students and teachers get more out of maths practice.
