doug.molineux.blog

Blog

RSA Encryption: The Foundation of Modern Digital Security

3/27/2025

The Birth of Public-Key Cryptography

In 1977, three MIT researchers—Ron Rivest, Adi Shamir, and Leonard Adleman—unveiled a cryptographic breakthrough that would become the backbone of internet security. Their algorithm, named RSA after their initials, solved a fundamental problem: how to securely communicate without sharing secret keys beforehand. This "public-key" system uses two mathematically linked keys—one public (for encryption) and one private (for decryption)—enabling secure communication even over insecure channels.

How RSA Works: A Mathematical Marvel

At its core, RSA relies on the extraordinary difficulty of factoring large prime numbers. When you create an RSA key pair, you generate two massive prime numbers (typically 2048+ bits today) and multiply them together. While multiplication is easy, reversing this—factoring the product back into its original primes—is computationally infeasible for classical computers. Your public key contains this product (called the modulus), while your private key holds the original primes. When someone encrypts data with your public key, only your private key can decrypt it, creating a secure one-way communication channel.

Where RSA Protects You Every Day

This elegant system secures nearly all modern digital communication:

  • HTTPS websites (the padlock in your browser)
  • Secure email (PGP/GPG encryption)
  • Digital signatures (verifying software updates)
  • SSL/TLS connections (protecting credit card transactions)
  • SSH secure logins (for system administrators)

The Looming Quantum Threat

RSA's security depends entirely on the difficulty of prime factorization—a vulnerability that quantum computers may soon exploit. Shor's algorithm, when run on a sufficiently powerful quantum computer, could break RSA-2048 encryption in hours rather than millennia. This impending "Q-Day" has spurred global efforts to transition to post-quantum cryptography standards like lattice-based algorithms.

Why RSA Still Matters

Despite quantum threats, RSA remains crucial today because:

  1. It's deeply embedded in global digital infrastructure
  2. Current quantum computers lack enough stable qubits to break it
  3. Hybrid systems now combine RSA with quantum-resistant algorithms

The story of RSA isn't just about mathematics—it's about how three researchers built the invisible walls that still protect our digital world, and why we'll soon need new walls for the quantum age.


Further Reading:

© 2025 doug.molineux.blog. Built with Gatsby.