🌍 Cybersecurity · subject

Cybersecurity Cryptography Syllabus

The Cryptography syllabus for Cybersecurity in full: 6 chapters and 24 topics, every one listed below, plus 51 Cryptography flashcards with answers.

6Chapters
24Topics
51Flashcards

Cryptography syllabus: all 6 chapters

Expand any chapter to see its topics and sub-topics.

  1. Cryptography Foundations

    4 topics
    • History and Goals of Cryptography
    • Encryption, Decryption, and Keys
    • Substitution and Transposition Ciphers
    • Kerckhoffs's Principle
  2. Symmetric Cryptography

    4 topics
    • Block vs Stream Ciphers
    • DES and 3DES
    • AES
    • Modes of Operation
  3. Asymmetric Cryptography

    4 topics
    • Public and Private Key Pairs
    • RSA
    • Diffie-Hellman Key Exchange
    • Elliptic Curve Cryptography (ECC)
  4. Hashing and Integrity

    4 topics
    • Hash Functions
    • Message Authentication Codes (HMAC)
    • Salting, Peppering, and Key Stretching
    • Collision and Birthday Attacks
  5. Public Key Infrastructure (PKI)

    4 topics
    • Digital Certificates and X.509
    • Certificate Authorities and Chain of Trust
    • Digital Signatures
    • Certificate Revocation
  6. Applied Cryptography and Attacks

    4 topics
    • TLS/SSL Handshake
    • Cryptographic Attacks
    • Steganography and Obfuscation
    • Post-Quantum and Quantum Cryptography

Cybersecurity Cryptography flashcards — 51 questions with answers

  1. What is the primary goal of cryptography, and what are the four core security services it aims to provide?

    Cryptography secures communication in the presence of adversaries. Its four core goals are: confidentiality (secrecy of data), integrity (data not altered), authentication (verifying identity/origin), and non-repudiation (sender cannot deny having sent the message).

  2. Historically, what is the difference between a code and a cipher?

    A code replaces whole words or phrases with other words, numbers, or symbols using a codebook. A cipher operates at the level of individual letters or bits, transforming them via an algorithm and key regardless of meaning.

  3. Define cryptography, cryptanalysis, and cryptology.

    Cryptography is the science of designing secure ciphers/schemes. Cryptanalysis is the science of breaking them (recovering plaintext or keys without authorization). Cryptology is the overarching field encompassing both.

  4. In cryptographic terms, what are plaintext, ciphertext, encryption, and decryption?

    Plaintext is the original readable message. Ciphertext is the scrambled, unreadable output. Encryption is the process $E_k(P) = C$ converting plaintext to ciphertext with key $k$. Decryption is the reverse $D_k(C) = P$.

  5. What is a cryptographic key and why is it essential to a cipher?

    A key is a secret parameter that controls the encryption/decryption transformation. It is essential because the algorithm is assumed public; the key alone provides security, so only key holders can decrypt.

  6. State Kerckhoffs's Principle.

    A cryptosystem should remain secure even if everything about it, except the key, is public knowledge. Security must depend solely on the secrecy of the key, not the obscurity of the algorithm.

  7. What modern maxim, attributed to Claude Shannon, restates Kerckhoffs's Principle?

    "The enemy knows the system" (Shannon's maxim). One should design assuming the adversary has full knowledge of the algorithm, so only the key is secret.

  8. Why is "security through obscurity" considered a weak approach?

    It relies on keeping the algorithm secret rather than the key. Once the algorithm leaks or is reverse-engineered, the system is broken. It cannot be publicly reviewed for flaws and violates Kerckhoffs's Principle.

  9. What is a substitution cipher? Give the classic example.

    A substitution cipher replaces each plaintext unit (usually a letter) with another symbol according to a fixed mapping. The classic example is the Caesar cipher, which shifts each letter by a fixed amount, e.g. $C = (P + 3) \bmod 26$.

  10. What is a transposition cipher, and how does it differ from a substitution cipher?

    A transposition cipher rearranges the positions of the plaintext characters (permutation) without changing the characters themselves. A substitution cipher changes the characters but keeps their positions.

  11. How can a simple monoalphabetic substitution cipher be broken?

    By frequency analysis: the ciphertext preserves the language's letter-frequency distribution, so matching the most common ciphertext letters to common plaintext letters (e.g. 'e', 't', 'a' in English) reveals the mapping.

  12. What is the Vigenère cipher and why is it stronger than a Caesar cipher?

    The Vigenère cipher is a polyalphabetic substitution using a repeating keyword to apply different Caesar shifts to successive letters: $C_i = (P_i + K_{i \bmod m}) \bmod 26$. Multiple shifts flatten single-letter frequencies, resisting simple frequency analysis.

  13. What is a one-time pad, and what conditions make it perfectly secure (unbreakable)?

    A one-time pad XORs plaintext with a truly random key of equal length. It achieves perfect secrecy (Shannon) if the key is truly random, at least as long as the message, never reused, and kept secret.

  14. Distinguish symmetric-key from asymmetric-key cryptography.

    Symmetric (secret-key) cryptography uses the same shared key for encryption and decryption (e.g. AES). Asymmetric (public-key) cryptography uses a mathematically linked key pair: a public key and a private key (e.g. RSA), where one encrypts and the other decrypts.

  15. What is the key-distribution problem, and which type of cryptography solves it?

    The key-distribution problem is securely sharing a secret key over an insecure channel. Asymmetric (public-key) cryptography solves it: the public key can be freely distributed, so no secret needs to be pre-shared.

  16. Compare block ciphers and stream ciphers.

    A block cipher encrypts fixed-size blocks of bits (e.g. 128 bits) at a time, often needing padding and a mode of operation (e.g. AES, DES). A stream cipher encrypts one bit or byte at a time by XOR-ing plaintext with a pseudorandom keystream (e.g. RC4, ChaCha20).

  17. For a block cipher, what is a block and what is padding?

    A block is the fixed number of bits the cipher processes at once (e.g. 64 or 128 bits). Padding adds extra bytes to the final plaintext block so its length is an exact multiple of the block size (e.g. PKCS#7).

  18. Describe the DES algorithm's key parameters and structure.

    DES (Data Encryption Standard) is a block cipher with a 64-bit block and a 56-bit effective key (64 bits with 8 parity bits). It uses a 16-round Feistel network.

  19. Why is DES considered insecure today?

    Its 56-bit key gives only $2^{56}$ possible keys, which is brute-forceable with modern hardware (demonstrated in hours/days). The small key space is the fatal weakness.

  20. What is 3DES (Triple DES) and how does it work? Give its effective security.

    3DES applies DES three times with the EDE scheme: $C = E_{k_3}(D_{k_2}(E_{k_1}(P)))$. With three independent keys it has a 168-bit key length but only about 112 bits of effective security due to meet-in-the-middle attacks. Using $k_1=k_3$ gives two-key 3DES.

Show the other 31 Cryptography flashcards
  1. Why does 3DES use Encrypt-Decrypt-Encrypt (EDE) rather than Encrypt-Encrypt-Encrypt?

    EDE provides backward compatibility: setting all three keys equal ($k_1=k_2=k_3$) makes 3DES reduce to single DES ($E(D(E(P))) = E(P)$), so it can interoperate with legacy DES systems.

  2. What is AES, and what block/key sizes does it support?

    AES (Advanced Encryption Standard) is the current symmetric block-cipher standard (Rijndael). It has a fixed 128-bit block and supports key sizes of 128, 192, or 256 bits, using 10, 12, or 14 rounds respectively.

  3. AES is based on which cipher structure, and name its main round operations.

    AES uses a substitution-permutation network (SPN), not a Feistel network. Each round performs SubBytes (S-box substitution), ShiftRows (row permutation), MixColumns (column mixing), and AddRoundKey (XOR with round key); the final round omits MixColumns.

  4. Why do block ciphers need a "mode of operation"?

    A block cipher only encrypts a single fixed-size block. A mode of operation defines how to securely encrypt messages longer than one block, chaining or combining block operations while preventing patterns and enabling features like randomization.

  5. What is ECB mode and why is it insecure?

    Electronic Codebook (ECB) mode encrypts each block independently with the same key. It is insecure because identical plaintext blocks yield identical ciphertext blocks, leaking patterns (e.g. the famous encrypted-penguin image).

  6. Describe CBC mode and the role of the IV.

    Cipher Block Chaining (CBC) XORs each plaintext block with the previous ciphertext block before encryption: $C_i = E_k(P_i \oplus C_{i-1})$, with $C_0$ being a random Initialization Vector (IV). The IV randomizes the first block so identical plaintexts produce different ciphertexts.

  7. How do CTR (Counter) mode and GCM differ from CBC, and why is GCM popular?

    CTR mode turns a block cipher into a stream cipher by encrypting successive counter values and XOR-ing with plaintext, enabling parallelism and random access. GCM (Galois/Counter Mode) adds authentication (an integrity tag) to CTR, providing authenticated encryption (AEAD), which is why it is widely preferred.

  8. What is authenticated encryption (AEAD) and why is it recommended?

    AEAD (Authenticated Encryption with Associated Data) simultaneously provides confidentiality and integrity/authenticity, producing an authentication tag over ciphertext (and optional unencrypted associated data). It is recommended because encryption alone doesn't prevent tampering. Examples: AES-GCM, ChaCha20-Poly1305.

  9. In public-key cryptography, which key encrypts and which decrypts for (a) confidentiality and (b) digital signatures?

    For confidentiality, the sender encrypts with the recipient's public key and the recipient decrypts with their private key. For a digital signature, the signer encrypts/signs with their own private key and anyone verifies with the signer's public key.

  10. What mathematical property makes a public/private key pair secure (a trapdoor function)?

    They rely on a one-way (trapdoor) function: easy to compute in one direction but computationally infeasible to reverse without the private key (the trapdoor). E.g. multiplying primes is easy but factoring their product is hard.

  11. Outline the RSA key-generation steps.

    1) Choose two large primes $p,q$ and compute $n = pq$. 2) Compute $\phi(n) = (p-1)(q-1)$. 3) Choose public exponent $e$ with $1 < e < \phi(n)$ and $\gcd(e,\phi(n))=1$. 4) Compute private exponent $d \equiv e^{-1} \pmod{\phi(n)}$. Public key is $(n,e)$; private key is $(n,d)$.

  12. State the RSA encryption and decryption formulas.

    Encryption: $C = M^{e} \bmod n$. Decryption: $M = C^{d} \bmod n$, where $(n,e)$ is the public key and $d$ the private key.

  13. On what hard mathematical problem does RSA's security rest?

    The integer factorization problem: given $n = pq$, it is computationally infeasible to factor large $n$ into its prime factors $p$ and $q$, which would reveal $\phi(n)$ and hence the private exponent $d$.

  14. What is the purpose of the Diffie-Hellman key exchange?

    It allows two parties to establish a shared secret key over an insecure public channel without ever transmitting the secret itself, enabling subsequent symmetric encryption. It provides key agreement, not encryption of messages.

  15. Walk through the Diffie-Hellman key-exchange math.

    Public parameters: prime $p$ and generator $g$. Alice picks secret $a$, sends $A = g^{a} \bmod p$. Bob picks secret $b$, sends $B = g^{b} \bmod p$. Both compute the shared secret $s = B^{a} = A^{b} = g^{ab} \bmod p$.

  16. What hard problem underlies Diffie-Hellman's security, and what attack is it vulnerable to without authentication?

    It relies on the discrete logarithm problem (recovering $a$ from $g^{a} \bmod p$ is infeasible). Without authentication of the exchanged values, it is vulnerable to a man-in-the-middle attack.

  17. What is Elliptic Curve Cryptography (ECC), and what is its main advantage over RSA?

    ECC is public-key cryptography based on the algebra of points on an elliptic curve over a finite field. Its main advantage is much smaller keys for equivalent security, giving faster computation and lower memory/bandwidth use.

  18. Give the general equation of an elliptic curve used in ECC and the hard problem it relies on.

    The curve is $y^{2} = x^{3} + ax + b$ over a finite field. Security rests on the Elliptic Curve Discrete Logarithm Problem (ECDLP): given points $P$ and $Q = kP$, finding the scalar $k$ is infeasible.

  19. Roughly, how do ECC and RSA key sizes compare for equivalent security?

    ECC keys are far smaller: a 256-bit ECC key gives roughly the same security as a 3072-bit RSA key, and a 128-bit symmetric equivalent. Smaller keys mean less computation and storage.

  20. What is a cryptographic hash function and what are its key properties?

    A hash function maps arbitrary-length input to a fixed-length digest. Properties: deterministic, fast to compute, preimage resistance (can't invert), second-preimage resistance, collision resistance, and the avalanche effect (small input change flips ~half the output bits).

  21. Define preimage resistance, second-preimage resistance, and collision resistance.

    Preimage resistance: given hash $h$, infeasible to find any $m$ with $H(m)=h$. Second-preimage resistance: given $m_1$, infeasible to find $m_2 \neq m_1$ with $H(m_2)=H(m_1)$. Collision resistance: infeasible to find any pair $m_1 \neq m_2$ with $H(m_1)=H(m_2)$.

  22. Compare MD5, SHA-1, and the SHA-2 family in terms of digest size and security status.

    MD5 produces a 128-bit digest and is broken (collisions trivial). SHA-1 produces 160 bits and is broken (collisions found, deprecated). SHA-2 (e.g. SHA-256, SHA-512) produces 256/512-bit digests and remains secure and recommended.

  23. What is a Message Authentication Code (MAC), and what does it provide that a plain hash does not?

    A MAC is a keyed checksum computed over a message with a shared secret key. Unlike a plain (keyless) hash, it provides integrity AND authentication, since only holders of the secret key can generate or verify a valid tag.

  24. What is HMAC and why can't an attacker simply forge it by appending data (length-extension)?

    HMAC is a hash-based MAC defined as $\text{HMAC}(K,m) = H\big((K \oplus opad)\,\|\,H((K \oplus ipad)\,\|\,m)\big)$. Its nested structure with inner and outer keyed hashing prevents length-extension attacks that affect naively-keyed hashes like $H(K\|m)$.

  25. Why should passwords be stored hashed rather than encrypted or in plaintext?

    Hashing is one-way, so even if the database is breached the original passwords aren't directly recoverable. Encryption is reversible (a leaked key exposes all passwords) and plaintext exposes them immediately. Passwords should be hashed with a slow, salted algorithm.

  26. What is salting, and what attack does it defend against?

    A salt is a unique random value added to each password before hashing: $H(\text{salt}\,\|\,\text{password})$. It ensures identical passwords produce different hashes, defeating precomputed rainbow-table attacks and preventing detection of duplicate passwords.

  27. What is peppering, and how does it differ from salting?

    A pepper is a secret value added to passwords before hashing, but unlike a salt it is the same for all users and stored separately from the database (e.g. in code or an HSM), not alongside the hash. It adds a layer that remains secret even if the database leaks.

  28. What is key stretching, and name common algorithms used for it.

    Key stretching deliberately makes password hashing slow and resource-intensive (many iterations / high memory) to slow brute-force and dictionary attacks. Common algorithms: PBKDF2, bcrypt, scrypt, and Argon2 (the modern recommendation).

  29. What is the birthday attack, and how many hash operations are needed to find a collision in an $n$-bit hash?

    The birthday attack exploits the birthday paradox to find hash collisions faster than brute force. For an $n$-bit output, a collision is expected after roughly $2^{n/2}$ operations, not $2^{n}$, which halves the effective security against collisions.

  30. What is a digital certificate, and what standard format is most commonly used?

    A digital certificate binds a public key to an identity (e.g. a domain or organization) and is digitally signed by a trusted Certificate Authority. The most common format is X.509, containing fields like subject, issuer, public key, validity period, serial number, and the CA's signature.

  31. What is a Certificate Authority (CA) and how does the chain of trust work?

    A CA is a trusted entity that issues and signs digital certificates. The chain of trust links an end-entity certificate to intermediate CA certificates up to a self-signed root CA certificate that is pre-installed in the client's trust store; each certificate is validated by verifying the signature of the one above it until a trusted root is reached.

Cybersecurity Cryptography FAQ

What is in the Cybersecurity Cryptography syllabus?

Cybersecurity Cryptography is split into 6 chapters: Cryptography Foundations, Symmetric Cryptography, Asymmetric Cryptography, Hashing and Integrity, Public Key Infrastructure (PKI) and Applied Cryptography and Attacks. Together they contain 24 topics.

How many chapters are in Cybersecurity Cryptography?

6 chapters, containing 24 topics. The largest chapter is Cryptography Foundations, with 4 topics.

Are there flashcards for Cybersecurity Cryptography?

Yes — a 51-card Cryptography deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.