Cryptography

Cryptography

My notes on cryptography for CTF, from the math foundations through classical ciphers, symmetric and public-key crypto, to the real attacks you see in challenges. Most crypto challenges are not about breaking AES or RSA, they are about finding where someone used them wrong.

The labs are small challenges with a working solve script. Everything is for learning, CTFs, and systems you are allowed to test.

Crypto · Getting Started

Crypto · Math Foundations

Crypto · Classical Ciphers

Crypto · XOR and OTP

Crypto · Symmetric Encryption

Crypto · Hashes and MACs

Crypto · RSA

Crypto · Diffie-Hellman

Crypto · Elliptic Curves

Crypto · Randomness

Crypto · Crypto in Practice

Crypto · Real-World Practice