RSA Cryptography Visualizer
A simple demonstration of RSA encryption concepts
Key Generation
Encryption & Decryption
Process Visualization
Generate keys first to see the visualization
How RSA Works
- Choose two distinct prime numbers (p and q)
- Calculate n = p × q (the modulus)
- Calculate φ(n) = (p-1)(q-1)
- Choose e (public exponent) that is coprime with φ(n)
- Calculate d (private exponent) as e⁻¹ mod φ(n)
- Public key is (n, e), private key is (n, d)
- Encryption: c = mᵉ mod n
- Decryption: m = cᵈ mod n
Note: This is a simplified demonstration using small numbers. Real RSA uses primes with hundreds of digits.
0 Comments