Reading — step 1 of 7
Read
~1 min readProduction
Putting It All Together
You've built every piece:
| Layer | Lesson |
|---|---|
| Modular exp | 1 |
| Primes | 2 |
| Modular inverse | 3 |
| Key generation | 4 |
| Encrypt/Decrypt | 5 |
| Padding | 6 |
| Signatures | 7 |
| Attacks | 8 |
| Key formats | 9 |
Modern alternatives to RSA:
- Ed25519 (signatures): 256-bit keys, much faster, smaller signatures (64 bytes vs 256+ for RSA-2048). Used by SSH (default since 2016), Signal, GitHub.
- X25519 (key exchange): the ECDH equivalent. Used by TLS 1.3.
- Kyber (post-quantum): NIST 2024 standardization. Drop-in replacement for RSA key exchange.
- Dilithium (post-quantum signatures): NIST 2024 standard.
When does RSA still make sense?
- Legacy compatibility (old TLS clients)
- Protocols that hardcode RSA (some PKCS#11 tokens, smart cards)
- Long-term archival (RSA-4096 is a known quantity)
For new applications, prefer Ed25519/X25519. RSA's footguns are real, and its algorithms predate modern crypto best practices by decades.
You now understand the most-deployed asymmetric algorithm in history.
Discussion
Ask a question, share an insight, or help someone who’s stuck.
Sign in to post a comment or reply.
Loading…