How the difficulty of factoring massive 2048-bit prime products secures banking and blockchain.
The Mathematical Shield of the Internet
Every HTTPS encrypted web session, online payment, and secure SSH key exchange relies on the computational hardness of factoring large prime numbers.
How RSA Key Generation Works
1. Pick two large secret prime numbers p and q (each 1024+ bits) 2. Compute modulus N = p · q 3. Calculate Euler's totient φ(N) = (p - 1)(q - 1) 4. Choose public exponent e coprime to φ(N) 5. Compute private decryption key d = e⁻¹ mod φ(N)
Encryption and Decryption Operations
Message 'M' is encrypted to Ciphertext 'C' via modular exponentiation: C = Mᵉ mod N. Decryption recovers the original message: M = Cᵈ mod N.
Quantum Computing and Post-Quantum Security
While Shor's algorithm could theoretically break RSA on large quantum computers, lattice-based cryptography and elliptic-curve cryptography (ECC) are actively fortifying the next generation of internet security.
Put This Math Into Practice
Test formulas and verify step-by-step solutions instantly using our 38+ free interactive tools.
Explore Math Solvers →