wunder beta

📘 What makes cryptography trustworthy?

Cryptography is the study of techniques for securing communication and data in the presence of adversaries. Modern usage centers on four goals:

6
lessons
~30 min
to learn
Adults
level
Start the course →

What you’ll learn

  1. Foundations: Goals, Threat Models, and Kerckhoffs's PrincipleDefine the core security goals cryptography provides and explain why a system's security must rest on the secrecy of the key, not the algorithm.Cryptography is the science of protecting information against an adversary, and modern practice frames it around four goals: confidentiality, integrity, authentication, and non-repudiation. A central design rule, Kerckhoffs's principle, holds that a system should remain secure even if everything about it except the key is public; Claude Shannon restated this as 'the enemy knows the system.' Security is meaningful only relative to a defined threat model and an adversary's assumed capabilities, and 'security through obscurity' is not a substitute for sound, openly reviewed design.
  2. Symmetric Encryption: AES and Modes of OperationExplain how symmetric block ciphers like AES work, why a raw block cipher needs a mode of operation, and how nonces and IVs are used safely.Symmetric encryption uses a single shared secret key for both encryption and decryption, and the Advanced Encryption Standard (AES) is the dominant block cipher, standardized by NIST in FIPS 197 with 128, 192, or 256-bit keys and a fixed 128-bit block. Because a block cipher only transforms one fixed-size block, a mode of operation is needed to encrypt arbitrary-length data; ECB leaks structure and must be avoided, while modes like CTR and CBC use an IV or nonce to randomize output. The key management challenge is that both parties must already share the secret key, which motivates the public-key techniques covered later.
  3. Hash Functions and Message AuthenticationDescribe the security properties of cryptographic hash functions and explain how HMAC uses a hash plus a key to authenticate messages.A cryptographic hash function maps arbitrary input to a fixed-length digest and must be one-way (preimage resistant), second-preimage resistant, and collision resistant. NIST standardizes the SHA-2 family in FIPS 180-4 and the sponge-based SHA-3 family in FIPS 202, both offering 224, 256, 384, and 512-bit digests. Hashing alone provides integrity only against accidental change, so authenticating a message against an active attacker requires a keyed construction such as HMAC, and passwords must be protected with slow, salted password-hashing functions rather than plain fast hashes.
  4. Public-Key Cryptography: Key Exchange and Digital SignaturesExplain how asymmetric cryptography solves key distribution and enables digital signatures using RSA, Diffie-Hellman, and elliptic-curve methods.Public-key (asymmetric) cryptography gives each party a mathematically linked key pair, a public key that can be shared freely and a private key kept secret, which solves the key-distribution problem of symmetric ciphers. Diffie-Hellman lets two parties derive a shared secret over a public channel based on the hardness of the discrete logarithm problem, while RSA, based on the difficulty of factoring large integers, supports both encryption and signatures. Digital signatures use the private key to sign and the public key to verify, providing authentication, integrity, and non-repudiation, and elliptic-curve cryptography achieves equivalent security with much smaller keys.
  5. Protocols, Pitfalls, and the Post-Quantum HorizonConnect cryptographic primitives into real protocols like TLS, identify common implementation pitfalls, and explain why post-quantum standards now exist.Cryptographic primitives only deliver security when composed correctly: TLS combines authenticated key exchange, certificates with a public-key infrastructure, and authenticated encryption to secure the web. Authenticated encryption with associated data (AEAD), such as AES-GCM standardized in NIST SP 800-38D, binds confidentiality and integrity together and avoids the fragile mistakes that arise when hand-composing separate encryption and MAC steps. Many real failures come from misuse rather than broken math, including nonce reuse, weak randomness, padding oracles, and side channels, and looming quantum computers led NIST to publish post-quantum standards in 2024 (FIPS 203, 204, and 205).
  6. Capstone: Build a Mini Authenticated-Messaging ArtifactApply the course concepts by designing and assembling a small authenticated, confidential message scheme using only standard, vetted primitives.In this capstone you build a mini artifact, an authenticated secure-message scheme, by composing the primitives from this course in the correct order. You will establish a shared key with an authenticated key exchange, protect each message with an AEAD cipher using unique nonces, derive keys properly, and add a signature for non-repudiation, then validate your design against a checklist of common pitfalls. The deliverable is a concrete protocol specification and a reflection on its threat model, demonstrating that secure systems come from correctly combining standard building blocks rather than inventing new math.

Questions this course answers

According to Kerckhoffs's principle, what is the only element of a cryptosystem that must remain secret?

Kerckhoffs's principle holds that a system should stay secure even if everything except the key is public knowledge; Shannon restated this as 'the enemy knows the system.' Security therefore rests on protecting the key, not on hiding the algorithm.

Which security goal does encryption by itself directly provide?

Encryption hides message content from unauthorized parties, which is confidentiality. Integrity, authentication, and non-repudiation require additional primitives such as MACs or digital signatures.

An attacker who can intercept, alter, drop, and inject messages between two parties is best described as which kind of adversary?

A passive attacker only listens, whereas an active attacker can modify and inject traffic; sitting between two parties and tampering with their messages is the classic active man-in-the-middle position.

Per FIPS 197, what is the block size of AES regardless of which key length is chosen?

AES uses a fixed 128-bit block in all variants; only the key size (128, 192, or 256 bits) and the corresponding number of rounds (10, 12, or 14) change.

Why is ECB mode considered insecure for structured data?

Because ECB encrypts each block independently with the same key, repeated plaintext blocks map to repeated ciphertext blocks, revealing structure such as the outline of an image.

What is the essential rule when using a nonce in CTR mode?

Reusing a nonce under the same key in CTR mode produces the same keystream, and XORing two ciphertexts then reveals the XOR of their plaintexts. Nonces need not be secret, but they must be unique per key.

Grounded in trusted sources

  • Niels Ferguson, Bruce Schneier, and Tadayoshi Kohno, Cryptography Engineering — threat models and protocol hygiene
  • NIST FIPS 197, Advanced Encryption Standard (AES), https://csrc.nist.gov/publications/detail/fips/197/final
  • NIST FIPS 180-4, Secure Hash Standard, https://csrc.nist.gov/publications/detail/fips/180/4/final
  • Auguste Kerckhoffs, “La cryptographie militaire” — Kerckhoffs’s principle (historical)
  • RFC 8446, The Transport Layer Security (TLS) Protocol Version 1.3 — modern key exchange context, https://www.rfc-editor.org/rfc/rfc8446

Every Wunder lesson is built from real, reputable sources — never invented.

Related courses

Wunder is a personalized learn-anything platform — tell it any topic and it builds a beautiful, fact-checked course in minutes, with narration, a knowledge check, and a college-style University track.

All topics · Home

© 2026 Wunder Learning LLC · Terms & Privacy