Read this lesson as text

The Magic of Public Key Cryptography

Number Theory · Axiom Academy

INTRO The Magic of Public Key Cryptography Discover how sharing keys publicly can create perfectly secure communication. For thousands of years, secure communication had one impossible challenge: how do you share a secret key without meeting in person? Click the padlocks to try sending a secure message Step 2: The Revolutionary Idea In 1976, mathematicians discovered something magical: what if you could create TWO keys - one to lock, one to unlock - and share the locking key publicly? Click below to reveal why this changes everything Step 3: The Paint Mixing Analogy Here's an intuitive way to understand the magic. Imagine mixing colors - it's easy to mix them together, but nearly impossible to separate them back! Let's simulate Alice sending Bob a secure message using public key cryptography! Public key cryptography solves the ancient key distribution problem by using TWO mathematically linked keys instead of one. The public key encrypts, the private key decrypts, and the mathematical relationship is a one-way function. This magic relies on problems from number theory that are asymmetric in difficulty: easy in one direction (multiplying huge primes), computationally infeasible in the reverse (factoring the product). This is why you're studying modular arithmetic, Euler's theorem, and the Chinese Remainder Theorem!

This is the written version of the interactive lesson above. See the full Number Theory course.