Prime P
61
Prime Q
53
⚙️
RSA Engine
Euler's Totient φ(n)
φ
🔒
Public Lock
Waiting...
Waiting...
🔑
Private Key
Waiting...
Waiting...
🧮 RSA Math Breakdown
| Prime P | ? |
| Prime Q | ? |
| Modulo N (p × q) |
? |
| Euler's Totient φ(n) (p-1) × (q-1) |
? |
| Public Exp (e) Coprime to φ(n) |
? |
| Private Key (d) Modular Inverse: (d·e) ≡ 1 mod φ(n) |
? |
🕵️
Attacker Brute Force
Trying to factor N to
find the secret primes:
Waiting...
📝 Real-World Key Formatting
Raw math numbers are not easily shared. To create an actual key file (like a
.pem
file), the integers are converted to Binary, then to Base64.
1. Binary / ASN.1 Encoding
n=? → Waiting...
e=? → Waiting...
e=? → Waiting...
2. Base64 Representation
Map binary to base64 for safe transport.
Waiting...
Waiting...
3. Armor Headers
Waiting...
Welcome! Select a scenario to explore Real-World Cryptography.