Post Quantum Encryption Project Learning Detailed Lesson Plan
Draft dated December 3, 2026. The goal is to understand structured lattices and use established post-quantum tools in a small Python vault project. Follow the seven-part structure in the outline.
Teaching approach
Use simple language, one idea at a time, and a concrete example before terminology. Explain new symbols. No advanced mathematics or quantum hardware is required to begin. Early modules introduce the necessary vectors and modular arithmetic.
This is a flexible sequence of twelve modules, not a twelve-week promise. Each module has three suggested lessons. A normal session is 30 minutes: five minutes recall, ten minutes explanation, ten minutes independent practice, five minutes explaining and bookmarking. A five-minute session covers one idea and a prediction; it need not involve coding. Coding tasks may take multiple sessions.
Ask about energy before teaching. Pause and save the exact resume point when energy or usage is low. Do not mark watching, reading, or generated code as independently completed practice. If Python recall is insufficient, revisit the relevant basics before proceeding. Keep an honest record of completed work.
Scope and architecture
The final program is an educational command-line vault with fictional records. Start with a password-protected local vault, then add a separate recipient-encrypted export. Reuse established implementations of AEAD, Argon2id, HKDF, ML-KEM, and, in a separate exercise, ML-DSA. Select exact libraries only after checking official documentation and current support at the implementation stage. A standard algorithm is not the same as a validated implementation or a reviewed application protocol.
Local mode: dummy master password → password KDF → wrapping key → protected random data key → authenticated encryption of records.
Recipient export: authenticated Bob public key → ML-KEM encapsulation/shared secret → context-bound key derivation → authenticated encryption of a fresh vault snapshot. Bob needs his private key to open the export. Protecting that private key at rest is a separate responsibility. If it is protected only by a weak password, the lattice layer does not remove that weakness.
The encrypted export does not provide forward secrecy against later theft of Bob’s long-term private key. Sender identity is a separate concern. More unlock routes change who can obtain the data; do not describe them as automatically stronger protection.
Do not implement novel encryption algorithms, claim quantum-proof security, or use a toy lattice as real encryption. GUI, browser integration, cloud synchronization, hardware tokens, account recovery, network services, Android ports, and production deployment are later projects rather than requirements for this first course.
Lessons and evidence
Module 1 The project and the quantum threat
Build: A one-page description of the learning vault and its limits.
- Explain encryption, decryption, signatures, and the difference between a password and a key.
- Read the NIST overview. Separate public-key risks from symmetric encryption and define harvest now, decrypt later.
- Draw the local-vault and recipient-export workflows. List the attacker and the secrets protected in each.
Independent practice: Classify three examples: stolen encrypted file, substituted recipient public key, and malware reading an unlocked vault.
Completion check: Explain why ML-KEM is useful for sharing a vault copy, but is not automatically needed for password-only local storage.
Reproducibility and evidence: Save a fictional example and the source URLs; do not create real keys or use personal vaults.
Module 2 Python and byte handling
Build: A command-line script that reads and writes fictional account records.
- Check Python recall with a short independent exercise: variables, functions, dictionaries, loops, and exceptions. Use the free refresher as needed.
- Work with bytes, UTF-8, hexadecimal, and JSON. Explain encoding versus encryption.
- Implement a small command interface and clear errors for missing or malformed files.
Independent practice: Round-trip fictional records; reject invalid JSON without overwriting the input.
Completion check: Modify and explain the data-reading function without copying a generated solution.
Reproducibility and evidence: Record interpreter version and exact commands. No external cryptographic dependency is needed yet.
Module 3 Points, vectors, and structured lattices
Build: A small lattice generator and nearest-point illustration.
- Make points using whole-number multiples of (2, 1) and (-1, 2). Include negative multiples.
- Show the second move is a quarter-turn of the first. Explain this deliberate relationship as an elementary example of extra algebraic structure.
- Search a bounded set of points for the one closest to a chosen target; label the search bounds and any ties.
Independent practice: Change the starting move and rotate it; predict two points before running. Explain why bounded search is not a general closest-vector solver.
Completion check: Generate a point by hand and explain that this toy grid is not ML-KEM.
Reproducibility and evidence: With the same inputs, generated points and distances should match. Record coordinate conventions.
Module 4 Noise and difficult problems
Build: A toy noisy-equation experiment that an attacker can solve by enumeration.
- Solve an exact arithmetic equation, then add small noise and discuss what changes.
- Use tiny modular equations with a small secret and errors. Label them a teaching model, not a complete secure LWE scheme.
- Enumerate candidate secrets for the tiny example. Compare search effort for modest toy sizes without claiming a real security estimate.
Independent practice: Find candidate secrets compatible with the noise bound; recognize that a toy may have multiple candidates.
Completion check: Explain why the toy is breakable and why adding dimensions alone is not a security proof.
Reproducibility and evidence: Use a fixed seed only for this non-security toy so observations can be repeated. Never reuse deterministic toy randomness for real keys.
Module 5 Keys, passwords, and authenticated encryption
Build: An in-memory encrypt/decrypt exercise with dummy plaintext.
- Choose maintained cryptographic dependencies after checking their current official APIs, support, platform compatibility, and release history. Record the choice.
- Use a library’s authenticated-encryption API, initially AES-256-GCM. Explain random keys, nonces, tags, and authenticated metadata.
- Use a supported Argon2id implementation to derive a wrapping key from a dummy password and random salt. Benchmark parameters on the actual machine.
Independent practice: Decrypt correctly; reject a wrong key, changed ciphertext, and changed authenticated metadata. Enforce nonce uniqueness for every encryption under a key.
Completion check: Explain the different jobs of the password KDF, encryption key, nonce, and tag.
Reproducibility and evidence: Pin and record dependencies and their transitive/native components. Real encryptions should normally differ because of randomness.
Module 6 Build the local vault
Build: A minimal create/add/list/save/unlock command-line vault.
- Generate a random data key and encrypt serialized fictional records with authenticated encryption.
- Protect the data key using a password-derived wrapping key. Design a versioned envelope with explicit algorithm identifiers, salts, nonces, and bounded parameters.
- Save atomically, prompt without echoing passwords, restrict file access, and keep a recoverable backup. Treat password change and recovery as explicit design decisions.
Independent practice: Wrong-password, corrupted-header, and interrupted-write exercises must leave the last valid vault intact. Bound KDF settings from untrusted files before allocation.
Completion check: Describe every stored field and identify which fields must stay secret. Recognize offline password guessing remains possible.
Reproducibility and evidence: Save an example format containing only dummy records; do not log passwords or encryption keys. Python does not promise reliable erasure of all secret copies.
Module 7 ML-KEM with an existing implementation
Build: A key-generation, encapsulation, and decapsulation demonstration.
- Read the role of a KEM in FIPS 203. Use standardized ML-KEM rather than assuming an older Kyber interface is identical.
- Select a supported implementation and a documented parameter set, initially assess ML-KEM-768. Generate Bob’s key pair and encapsulate to his public key.
- Decapsulate and verify both sides obtain matching secrets using assertions rather than displaying the secret.
Independent practice: Check malformed inputs and published vectors. A well-formed altered encapsulation may produce a different secret through implicit rejection rather than a visible KEM error.
Completion check: Explain why the encapsulation is safe to send and the decapsulation key must remain private.
Reproducibility and evidence: Record exact algorithm, parameter set, library, provider/native runtime, platform, and vector provenance. Do not implement lattice cryptography from scratch.
Module 8 Encrypt a vault export for Bob
Build: A separate recipient-encrypted copy of the fictional vault.
- Authenticate Bob’s public-key fingerprint through a separate trusted comparison in this local exercise. Define what key substitution would do.
- Encapsulate, derive an AEAD key from the shared secret using a documented HKDF context, and encrypt a fresh snapshot for Bob. Bind format, algorithm identifiers, recipient identity, and KEM encapsulation as appropriate to the documented format.
- Bob decapsulates, derives the same key, and decrypts. Keep this recipient export distinct from the password-unlocked local vault. Write down the complete protocol before implementation.
Independent practice: Reject wrong-recipient and tampered exports without returning plaintext. Demonstrate key substitution with dummy keys to explain the identity requirement.
Completion check: Explain the roles of ML-KEM, HKDF, and AEAD, and that encryption to Bob alone does not authenticate Alice.
Reproducibility and evidence: Use established library interfaces and obtain design review before expanding beyond the local experiment. This course format is not a standardized vault protocol.
Module 9 Identity and post-quantum signatures
Build: A separate ML-DSA sign/verify demonstration and key-trust note.
- Distinguish confidentiality from sender authenticity. Explain why a fingerprint needs a trusted comparison.
- Use an existing ML-DSA implementation to sign a dummy release manifest or export digest.
- Verify using a pinned trusted public key, then change the signed bytes and confirm verification fails.
Independent practice: Wrong trusted key, changed manifest, and changed signature should fail verification. Keep signatures separate until the combined protocol is reviewed.
Completion check: Explain why a signature checked against an attacker-supplied key proves nothing about the claimed sender.
Reproducibility and evidence: Record parameter set and vectors. Signing does not make a build reproducible or prove software has no vulnerabilities.
Module 10 Failures, recovery, and hardening
Build: A documented failure matrix and focused regression tests.
- Review offline guessing, malformed files, key theft, clipboard/log leaks, dependency compromise, rollback, and unlocked-device malware.
- Test truncation, oversized fields, unreasonable KDF settings, duplicate/noncanonical metadata, interrupted writes, and accidental overwrite.
- Practise backup restoration with dummy data and document recovery limits, including loss of Bob’s private key.
Independent practice: All failed operations preserve valid data and avoid secret-bearing diagnostics. Test that old valid backups can still be replayed unless explicit rollback protection is designed.
Completion check: State which attacks the prototype addresses, which remain, and what evidence supports each claim.
Reproducibility and evidence: Run tests against temporary fixtures. Keep results, not personal secrets or real password databases.
Module 11 Dependencies, vectors, and repeatable builds
Build: A repeatable setup/build procedure and artifact comparison report.
- Inventory direct, transitive, and native cryptographic dependencies. Pin versions and retain verification information.
- Run authoritative implementation vectors in a test-only setting. Separate vector randomness from production randomness.
- Build/package twice in controlled environments; compare hashes and explain mismatches. Distinguish deterministic math, randomized encryption, and reproducible build artifacts.
Independent practice: Repeat setup using the documented inputs; introduce one dependency or build-input change and identify its effect.
Completion check: Explain why two encrypted exports differing is expected, while two packages differing may need investigation.
Reproducibility and evidence: Claim reproducibility only for artifacts actually compared. Do not infer FIPS validation from implementing a NIST-standardized algorithm.
Module 12 Final demonstration and honest claims
Build: An educational CLI, documentation, and portfolio evidence.
- Demonstrate create, save, lock/unlock, and recipient export using fictional records.
- Run the failure suite, explain the architecture without AI-generated answers, and demonstrate restoration from backup.
- Write a short report covering what you built, your independent contributions, dependencies, review gaps, and possible next steps.
Independent practice: Have a second dummy recipient open an export. Demonstrate wrong-password and altered-export rejection. Do not migrate personal passwords.
Completion check: Independently explain the workflow, diagnose a planted failure, and distinguish completed work from assisted work.
Reproducibility and evidence: Produce local documentation and a release checklist. Publishing, deploying, outreach, paid services, and using real secrets require a separate user request.
Lesson authoring pattern
Each future lesson page should contain: objective; plain-language explanation; one worked example; independent exercise; expected behavior without giving away the full solution; meaningful failure case; completion question; source links; and resume bookmark. Create code snapshots and solutions only as lessons are actually developed.
Possible later direction
After the final demonstration, assess whether to extend an established tool, develop migration-testing utilities, or research usability for small organizations. The learning vault alone does not establish production readiness. Any extension for public use needs identifiable users, a credible delivery plan, and independent security review.
Sources
See the reference list. Recheck standards errata, library APIs, and maintained implementation guidance when writing each technical lesson.