Cryptography & Network Security · Last-Night Suggestion

Cram·Sheet

Every topic, every formula, every diagram — worked end-to-end so you can walk in calm tomorrow.

16 topics + 2 deep-divesFull mathExam-ready
Start at 01 →Browse topics
Foundations
01

The Encryption Process

Confidentiality, integrity, authenticity. Formal E/D definitions, threat models, CIA mapping.

Open →
02

Cryptographic Primitives

Encryption, hash, MAC, signatures. Birthday bound, HMAC formula, 6-step signing flow.

Open →
03

Kerckhoffs's Principle

"The enemy knows the system." Shannon's maxim, open design, historic failures.

Open →
Classical Ciphers
04

Simple Substitution

Monoalphabetic permutation, 26! keyspace, full frequency-analysis walkthrough.

Open →
05

Vigenère Cipher

Polyalphabetic shifts, worked LEMON example, Kasiski + Friedman key-length math.

Open →
06

Playfair Cipher

5×5 digraph matrix, 3 rules + decryption, full HELLO trace.

Open →
Symmetric Crypto
07

AES — Full Round Math

FIPS-197 vector, SubBytes→ShiftRows→MixColumns→AddRoundKey + GF(2⁸), S-box, full structure.

Open →
07B

AES Round 1 Every Step

S-box coordinates, ShiftRows map, MixColumns binary + intermediates, AddRoundKey per byte.

Open →
08

DES / Feistel

Feistel proof, F-function, E/P tables, shift table, full K1 from 133457799BBCDFF1.

Open →
08B

DES Key Expansion Every Bit

PC-1 pick-by-pick, shifts every round, PC-2 pick-by-pick to K₁ + all K₁–K₁₆.

Open →
Asymmetric + Attacks
09

RSA — The Math

Keygen, Euclid for d, square-and-multiply traces, padding & attacks.

Open →
10

Diffie-Hellman

Shared secret without sending it, exponentiation trace, discrete-log hardness.

Open →
11

Man-in-the-Middle

Why anonymous DH falls, K1 vs K2 algebra, STS/TLS fixes.

Open →
Protocols + Access Control
12

SPS Protocol

Customer/Merchant/PG dual envelope, sequence diagram, property table.

Open →
13

Access Control Models

DAC/MAC/RBAC/ABAC, Bell–LaPadula, Biba, decision logic.

Open →
14

ABAC

Attribute policies, XACML PEP/PDP/PIP/PAP flow, combining rules.

Open →
How to use this site
Read in order 01→14 (with 07B after 07 and 08B after 08) with Prev/Next buttons, or jump via the top nav. Every page ends with an exam one-liner. Quote to remember: "A cryptosystem should be secure even if everything about the system, except the key, is public knowledge." — Kerckhoffs, 1883
Next →
01 · The Encryption Process