Route · step 25 of 34 · 14 pages · about 12 min
Cryptography fundamentals
One message through five machines: encoding hides nothing, a hash has no key, AEAD encryption hides and protects, a MAC proves integrity, a signature proves origin to anyone. Real systems agree a key with asymmetric crypto and move data with symmetric; nonce reuse, weak randomness and homemade ciphers are how it breaks.
- What it is
- Cryptography is the set of tools that keep messages secret, unchanged and provably from their sender, using keys rather than hiding how they work.
- What it is for
- Data crosses networks and disks you do not control, and the classic failures come from picking the wrong tool or misusing the right one.
- Use it when
- Whenever data leaves a process: on the network, at rest, in tokens, webhooks and software updates.
- Not when
- It does not decide who may do what, and it does not help once an attacker controls the app that holds the keys.
New words you’ll learn
- Data centre
- Base64 encoding
- AEAD
- AES-256-GCM
- Webhook
- HMAC
- Digital signature
- Diffie-Hellman key exchange
- Nonce reuse
- KMS