Cryptography in Practice | Nesqual TechCourse outline
Threat models and what each primitive promises
- Cryptography is one layer, not the whole wallLesson25 min
- Threat modelling for cryptographyLesson30 min
- What each primitive promises, and what it does notLesson30 min
- Security levels and brute-force arithmeticLesson30 min
- The toolbox in this course: bytes, encodings and what is availableLesson30 min
- Chapter quiz: threat models and promisesQuiz15 min
Hashes, MACs and key derivation
- What a cryptographic hash promisesLesson
30 min
The birthday bound, Merkle trees and checksumsLesson30 minHashing misuse: guessing, tampering and length extensionLesson35 minMACs and HMACLesson30 minUsing MACs correctly: comparison, encoding, replayLesson35 minKey derivation with HKDFLesson35 minHashes, MACs and key derivation quizQuiz15 minLab: sign webhooks, find a collision and derive keysLab40 minRandomness and secrets
- Why randomness holds everything upLesson30 min
- PRNGs, CSPRNGs and what Python gives youLesson30 min
- Seeding failures: when the source is guessableLesson35 min
- Tokens, identifiers, codes and passphrasesLesson30 min
- Randomness inside protocols and generatorsLesson35 min
- Chapter quiz: randomness and secretsQuiz15 min
Password storage
- How stolen password databases are attackedLesson30 min
- Salts and peppersLesson30 min
- Slow hashing with PBKDF2Lesson30 min
- Memory-hard hashing with scrypt, Argon2id and bcryptLesson30 min
- The login flow done right, and migrating legacy hashesLesson35 min
- Password policy, screening and what comes after passwordsLesson30 min
- Password storage quizQuiz15 min
- Lab: crack the legacy table, then store passwords properlyLab40 min
Symmetric encryption and modes
- Block ciphers, stream ciphers and a toy to take apartLesson30 min
- Why a block cipher is not a message cipher: ECBLesson30 min
- CBC: chaining blocks, IVs and paddingLesson30 min
- CTR mode and the two-time padLesson30 min
- Malleability, bit flipping and padding oraclesLesson35 min
- Symmetric encryption for real: libraries, openssl and decisionsLesson30 min
- Quiz: symmetric encryption and modesQuiz15 min
- Lab: build ECB, CBC and CTR, then break themLab40 min
Authenticated encryption and nonce discipline
- The AEAD promise and why the order mattersLesson30 min
- Building encrypt-then-MAC: the Kestrel envelopeLesson35 min
- AES-GCM and ChaCha20-Poly1305 in practiceLesson35 min
- Nonce discipline: what reuse destroys and how counters failLesson35 min
- Associated data and context bindingLesson30 min
- Failure handling, leaks around the ciphertext and layers of encryptionLesson35 min
- Quiz: authenticated encryption and nonce disciplineQuiz15 min
- Lab: seal, tamper with and misuse a Kestrel note envelopeLab40 min
Key exchange and elliptic curves
- Agreeing a key in public: Diffie-HellmanLesson30 min
- Mallory in the middle: authentication and forward secrecyLesson30 min
- Elliptic curves: the same idea in a different groupLesson35 min
- ECDH in practice: X25519 and P-256Lesson35 min
- From shared secret to a secure channelLesson35 min
- Quiz: key exchange and elliptic curvesQuiz15 min
Public-key encryption and signatures
- RSA from the ground upLesson30 min
- Textbook RSA breaks, and how padding and hybrids fix itLesson30 min
- Digital signatures with RSALesson30 min
- ECDSA, Ed25519 and the nonce that must never repeatLesson35 min
- Choosing and using public-key cryptographyLesson30 min
- Chapter quiz: public-key encryption and signaturesQuiz15 min
- Lab: break a toy RSA signature, then sign a release properlyLab40 min
Certificates, PKI and TLS 1.3
- Binding names to keys: the X.509 certificateLesson30 min
- PKI and trust: chains, trust stores and your own CALesson35 min
- Revocation, expiry and the outages they causeLesson30 min
- The TLS 1.3 handshake, message by messageLesson35 min
- Configuring and verifying TLS correctly in PythonLesson35 min
- Troubleshooting TLS failures with a repeatable methodLesson35 min
- Quiz: certificates, PKI and TLS 1.3Quiz15 min
- Lab: build a private CA and watch TLS 1.3 on loopbackLab40 min
Key management and rotation
- The key lifecycle, hierarchies and blast radiusLesson30 min
- Envelope encryption: DEKs wrapped under KEKsLesson30 min
- Rotation without downtimeLesson30 min
- Storing and handling secretsLesson30 min
- Compromise, recovery and crypto agilityLesson30 min
- Chapter quiz: key management and rotationQuiz15 min
Real-world failures and how to review code
- A tour of real failures, layer by layerLesson30 min
- A catalogue of Python crypto anti-patternsLesson30 min
- A repeatable method for reviewing crypto codeLesson30 min
- Automating part of the review with astLesson35 min
- Fixing and migrating safelyLesson35 min
- Edges: leaks around the crypto, and what crypto cannot fixLesson30 min
- Quiz: real-world failures and code reviewQuiz15 min
- Lab: audit and fix the legacy Kestrel helpersLab40 min
Post-quantum orientation and capstone design review
- What quantum computers change, and what they do notLesson30 min
- The post-quantum standards, tried for realLesson35 min
- Hybrids, inventories and a migration planLesson30 min
- Capstone, part one: reviewing the Kestrel designLesson35 min
- Capstone, part two: ranking, the corrected design and your checklistLesson35 min
- Where next: from this course to your own systemsLesson20 min
- Chapter quiz: post-quantum readiness and design reviewQuiz15 min
- Lab: fix the Kestrel prototype and verify its trust chainLab45 min