Why Factoring Keeps Secrets: RSA Encryption

About this lecture

Public-key cryptography rests on one lopsided fact: multiplying two large primes is instant, and taking the product apart again is not. This lecture builds RSA from that single asymmetry, for someone who can code but has never studied number theory. It opens on the pair it is walking toward — a public key and a private key — and then sets up modular arithmetic on a clock face, counts the numbers that share no factor with a modulus, and generates a real key pair from the primes sixty-one and fifty-three, with every number computed on screen: the modulus, the totient, the public exponent and the private exponent that undoes it. We encrypt the letter A by repeated squaring, decrypt it back, and then use Euler's theorem to show why the round trip has to return the original message. It closes on the security argument: the exact chain of dependencies an attacker faces, and how fast the cost of factoring runs away from anything a computer can do.

Transcript

Loading discussion…