Cryptography
Cryptography from the attacker’s and auditor’s point of view: what each primitive guarantees, where real implementations fail and how those failures are exploited in CTFs and assessments.
START HERE
CARDS (8 cards)
cripto/
- Concepts & common attacks
Well-implemented cryptography is rarely "broken" by brute-forcing the algorithm: it's broken by how it's used.
- Symmetric vs asymmetric
Symmetric vs asymmetric encryption and modes of operation (ECB, CBC, CTR, GCM): the basis for understanding and exploiting real crypto flaws.
- Hashing & cracking
Hashes: what they guarantee and what they don't, how passwords are cracked with hashcat and John, and how to store them (bcrypt, scrypt, Argon2).
- PKI & certificates
Asymmetric cryptography and PKI (Public Key Infrastructure) underpin TLS, code signing, encrypted email, and certificate authentication.
- TLS
TLS is the protocol that gives traffic confidentiality, integrity, and authenticity (HTTPS and much more).
- Padding oracle
CBC padding oracle: how a different response to invalid padding lets you decrypt and encrypt data without the key, and how to prevent it.
- Steganography
Steganography: hiding data in images, audio, text or traffic, and the techniques and tools to detect and extract it in CTFs and forensics.
- Weak randomness (RNG)
A huge amount of security depends on unpredictable random numbers: keys, IVs/nonces, session tokens, password resets, OTPs, and identifiers.