Build Security with the Language of Safety
Learn cryptography by coding it in Rust.
From XOR to Ed25519 — one primitive at a time.
No fluff. No math-heavy jargon. Just Rust and security.
🎥 Prefer video learning? Watch the Cryptography playlist
The Learning Journey
The book is organized into four parts, each designed to bridge practical cryptography with real-world Rust engineering.
Part I — Foundations 🧩
Build your mental model for secure systems.
- Cryptography as a systems problem
- Rust’s safety guarantees
- Case studies & mindset (XOR hands-on)
Part II — Core Primitives 🔐
Implement the building blocks.
- XOR, AES, ChaCha20
- HMAC, Poly1305
- RSA, Ed25519, ECDSA
- Hashes, randomness, ZKPs, post-quantum crypto
Part III — Real-World Domains 🌍
Apply cryptography in high-impact sectors:
- 🔐 Secure Infrastructure
- 🌐 Blockchain & Web3
- 🏥 Healthcare & Medical Systems
- ✈️ Defense & Aerospace
- 🧠 Privacy-Preserving AI
- 🧩 IoT, Identity, Offensive Security
Part IV — Building Secure Rust Crates ⚙️
Engineer security into your own code.
- Safe-by-design APIs
- Testing (unit, fuzzing, property-based)
- Docs & maintainability best practices