Walk through every step of the world's most widely-used public-key cryptosystem โ generate real keys, encrypt a message, and decrypt it back.
| Operation | Difficulty | Why |
|---|---|---|
| Multiply p ร q โ n | Easy | Simple multiplication, O(nยฒ) bit operations |
| Factor n โ p, q | Hard | Best known: sub-exponential, still ~10ยณโด ops for 2048-bit |
| Compute e, n โ C | Easy | Fast modular exponentiation (square-and-multiply) |
| Recover d from (e, n) | Hard | Equivalent to factoring n |
| Compute d from (e, ฯ(n)) | Easy | Extended Euclidean Algorithm โ O(log n) |