Cybersecurity-Mastery

Cryptography — Track

Primitives, protocols and the failure modes that turn strong maths into broken systems.

Your progress in this track

Set up the lab environment below once, then work the lessons — each one is hands-on-first.

Lab Environment

Set up once, then use it for every chapter in the Cryptography part. Everything runs locally and isolated — you never touch a system you don't own.

This part is mostly conceptual and tool-driven — no dedicated vulnerable targets are needed. Work from Kali (or any Linux box) and the tools called out in each chapter.

What you get

TargetHow to reach it
Kali / local shelleverything you need is a terminal and the tools named per chapter

Provision it — save this as docker-compose.yml and run docker compose up -d (or import the equivalent spec into CyberForge):

yaml
# Optional scratch box for trying commands in isolation:
services:
  scratch:
    image: kalilinux/kali-rolling        # or debian:stable-slim
    container_name: scratch
    command: sleep infinity
    networks: [labnet]
networks:
  labnet: { driver: bridge, internal: true }

Attacker box. Run the chapter's commands directly on Kali, or in the disposable scratch container to keep your main system clean.

Verify it works

  • docker exec -it scratch bash gives an isolated shell.

Teardown. docker compose down stops it; add -v to also drop volumes. Snapshot before big changes so you can revert.

Safety. Keep intentionally-vulnerable targets on an isolated/internal network. Never expose them to the internet or attack anything outside this lab.

Lessons

#LessonDifficultyHands-onWhat you'll do
1Cryptography Foundations🟢 Beginner~36mConfidentiality, integrity, authenticity, threat models, Kerckhoffs's principle and entropy.
2Symmetric Cryptography🟡 Intermediate~60mBlock and stream ciphers, modes of operation, padding, IV/nonce handling and AEAD.
3Asymmetric Cryptography🟡 Intermediate~60mTrapdoor functions, key pairs, hybrid encryption and the maths behind public-key systems.
4AES🟡 Intermediate~48mRijndael internals, key schedule, rounds, GCM/CBC/CTR modes and practical misuse.
5RSA🟠 Advanced~60mKey generation, padding schemes, common implementation attacks and CTF-style factorisation.
6Elliptic Curve Cryptography🟠 Advanced~60mCurve arithmetic, ECDSA, EdDSA, X25519 and nonce-reuse key recovery.
7Diffie-Hellman🟡 Intermediate~36mKey agreement, ephemeral vs static, forward secrecy, small-subgroup and Logjam attacks.
8Hash Functions🟢 Beginner~36mPreimage and collision resistance, MD5/SHA families, BLAKE3 and length-extension.
9Message Authentication Codes🟡 Intermediate~30mMAC goals, CBC-MAC, CMAC, Poly1305 and encrypt-then-MAC composition rules.
10HMAC🟡 Intermediate~30mConstruction, security proof intuition, key sizing and constant-time verification.
11Digital Signatures🟡 Intermediate~48mSignature schemes, non-repudiation, signing vs encryption and signature-verification bypasses.
12X.509 Certificates🟡 Intermediate~48mFields, extensions, chains, SANs, revocation, CT logs and validation mistakes.
13Public Key Infrastructure🟠 Advanced~60mCAs, RAs, trust stores, enrolment, internal PKI design and AD CS abuse paths.
14TLS Cryptography🟠 Advanced~48mHow the primitives compose inside TLS, key schedules, 0-RTT risks and protocol attacks.
15Password Hashing and Storage🟡 Intermediate~36mbcrypt, scrypt, Argon2, salting, peppering, work factors and credential-stuffing economics.
16Randomness and Key Management🟠 Advanced~48mCSPRNGs, entropy sources, key rotation, HSMs, KMS design and key-compromise recovery.
17Post-Quantum Cryptography🟠 Advanced~48mShor and Grover impact, ML-KEM/ML-DSA, hybrid deployment and harvest-now-decrypt-later.
18Applied Cryptanalysis🔴 Expert~72mPadding oracles, timing side channels, bit-flipping, nonce reuse and hash-length extension in practice.

18 lessons.

← Repository home · Full contents · Labs campaign

Cybersecurity-Mastery — interactive security learning · runs locally