← Tutorials & Labs

Code Examples & Projects

Complete code examples and small hands-on projects.

A subcategory of Tutorials & Labs, collecting its introduction, articles and resource entry points.

§

Articles here

22 Nov 2026 Tutorials & Labs

Project: A Post-Quantum Certificate Chain Size Calculator

A zero-dependency tool in pure standard-library Python: turn the parameter tables of FIPS 203/204/205 into data, accumulate public key and signature sizes level by level, and compute exactly how many bytes a certificate chain gains when it moves to post-quantum algorithms.

Certificate ChainsParameter CalculationFIPS 204Standard Library

Read more →
22 Nov 2026 Tutorials & Labs

Project: A File Encryption Tool Built on a Hybrid KEM

Wire ML-KEM-768 and X25519 together as a hybrid key encapsulation, derive a session key with HKDF, and encrypt files with AES-256-GCM: a complete, runnable, verifiable teaching-grade file encryption tool.

ML-KEMHybrid EncryptionliboqsFile Encryption

Read more →
22 Nov 2026 Tutorials & Labs

Project: A Batch Verifier for KAT Test Vectors

Parse NIST-style KAT vector files and run three layers of batch checks — field lengths against the parameter table, shared-secret recomputation by decapsulation, and signature verification — to learn what standards conformance testing actually tests.

KATConformance TestingML-KEMTest Vectors

Read more →
22 Nov 2026 Tutorials & Labs

Project: A Two-Process Local KEM Key Exchange Demo Service

Run a server and a client as two local processes over Python sockets, complete a full ML-KEM-768 encapsulation exchange, then carry an encrypted echo channel on the negotiated shared secret.

KEMSocket ProgrammingML-KEMProtocol Demo

Read more →
22 Nov 2026 Tutorials & Labs

Project: A Software Update Package Verifier with ML-DSA Signatures

Design a signed manifest for software update packages: the publisher signs the manifest with ML-DSA-65, and the client verifies the signature first, then checks every file hash — installation only proceeds when both channels pass.

ML-DSASoftware UpdatesDigital Signaturesliboqs

Read more →
22 Nov 2026 Tutorials & Labs

Project: The Cryptographic Core of a Password Vault (Teaching Implementation)

Derive a key from a master password with scrypt and seal the whole vault file with AES-256-GCM: implement a minimal working password vault core, with an itemized account of how it falls short of a production vault.

Password VaultKDFAEADTeaching Implementation

Read more →
22 Nov 2026 Tutorials & Labs

Project: Build Your Own PQC Benchmark Suite

A uniform timing framework on top of liboqs: batch-measure key generation, encapsulation, signing, and verification across ML-KEM, ML-DSA, SLH-DSA and more, and emit a reproducible report with medians and spread.

BenchmarkingliboqsMeasurement MethodML-KEM

Read more →
22 Nov 2026 Tutorials & Labs

Your First Quantum Circuit with Qiskit: From a Bell State to a Measurement Histogram

Set up the environment and build a first quantum circuit: prepare a Bell state with a Hadamard gate and a CNOT, run it on a simulator, learn to read the measurement histogram, and understand how real hardware execution differs.

Qiskitquantum circuitsBell statequantum computing basics

Read more →
§

More in this section