Core Concepts
5 questions
Cryptology splits into cryptography (defending information) and cryptanalysis (attacking it). Modern schemes are designed under Kerckhoffs's principle: assume attackers know every algorithm involved — only the short secret key stays hidden.
Q1
"Cryptology" is made up of two branches: cryptography (which defends) and ______ (which attacks).
1 mark
Q2
In the classic Alice / Bob / Eve / Mallory terminology, who represents an attacker who can only eavesdrop, not modify data?
1 mark
Q3
Kerckhoffs's principle assumes attackers already know everything about a cryptosystem except:
1 mark
Q4
A classical substitution cipher maps 27 symbols (26 letters + a space character) to 27 symbols, giving 27! possible keys. Roughly how many bits are needed to represent one key (log₂(27!))?
1 mark
Q5
Why is exhaustive (brute-force) search infeasible against a 27!-key substitution cipher, per the lecture's back-of-envelope estimate?
1 mark
Core Concepts score
0/5
Classical Ciphers & Attacks
3 questions
Substitution ciphers aren't secure against a determined attacker: a known plaintext reveals the key directly, and even a ciphertext-only attacker can exploit the fact that English letters (and letter pairs) occur with predictable frequency.
Q6
Classical substitution ciphers can be broken with only a ciphertext (no known plaintext) using:
1 mark
Q7
According to the lecture, roughly how much ciphertext is "sufficiently long" for frequency analysis to reliably break a substitution cipher in English?
1 mark
Q8
Given a known plaintext/ciphertext pair for a substitution cipher, an attacker can recover the key by:
1 mark
Classical Ciphers & Attacks score
0/3
Modern Ciphers & Modes
4 questions
AES is the workhorse modern block cipher — but a block cipher only encrypts one fixed-size block. Extending that to real (large) messages needs a mode of operation, and the choice of mode matters enormously for security.
Q9
Select all TRUE statements about AES (select all that apply):
2 marks
Q10
Which block-cipher mode of operation is known for leaking plaintext patterns — e.g. an encrypted image's flat background stays visible — because identical plaintext blocks always produce identical ciphertext blocks?
1 mark
Q11
Among the AES modes mentioned in the lecture, which is described as the most secure, able to withstand attackers who can probe a "decryption oracle"?
1 mark
Q12
In CTR mode, what happens if the same key and the same IV (nonce) are mistakenly reused to encrypt two different messages, X and Y?
2 marks
Modern Ciphers & Modes score
0/6
Pitfalls & Side Channels
5 questions
Modern ciphers like AES are believed mathematically secure — but real systems are broken through implementation mistakes, not by breaking the maths.
Q13
A key derived from an 8-character password (e.g. via SHA3), even when it feeds 128-bit AES, is realistically only as strong as:
1 mark
Q14
"Security through obscurity" failed for RC4 and MIFARE Classic because:
1 mark
Q15
A side-channel attack is best defined as one that:
1 mark
Q16
Which of these are side-channel attack techniques mentioned in the lecture? (select all)
2 marks
Q17
Which real CVE example from the lecture illustrates a "predictable key generation" pitfall?
1 mark
Pitfalls & Side Channels score
0/6
History & Real-World Failures
4 questions
Cryptography has a long track record of ciphers that looked strong when introduced, then fell to advances in cryptanalysis or plain hardware progress.
Q18
DES, standardized in 1977 with a 56-bit key, was practically broken in 1998 by:
1 mark
Q19
RC4 became insecure in real deployments primarily because:
1 mark
Q20
During WWII, the Enigma machine's secret key was set physically using its:
1 mark
Q21
Triple DES is still in limited use today with an effective key strength of about:
1 mark
History & Real-World Failures score
0/4
Symmetric vs Asymmetric Keys
4 questions
Symmetric crypto uses one shared secret key to both encrypt and decrypt — fast, but both sides must somehow get that key safely first. Asymmetric (public-key) crypto uses a matched key pair: a public key anyone may have, which only locks (or verifies signatures), and a private key that never leaves its owner, which unlocks (or signs). It is much slower, so real protocols like TLS and SSH are hybrid: asymmetric crypto sets up a shared key, then symmetric crypto (AES, ChaCha20) protects the data.
Worked example: toy RSA with tiny numbers
- Bob makes his keys. He picks two primes, 3 and 11, and multiplies them: n = 33. His public key is (e = 3, n = 33), which he gives to everyone. His private key is (d = 7, n = 33), which he keeps secret.
- Alice encrypts the message 4 with Bob's public key: 4³ = 64, and 64 mod 33 = 31. She sends 31.
- Bob decrypts with his private key: 31⁷ mod 33 = 4 ✓
pow(4, 3, 33) → 31, then pow(31, 7, 33) → 4.
Q22
In asymmetric (public-key) cryptography, a message encrypted with Bob's public key can be decrypted by:
1 mark
Q23
Every cipher covered earlier in this session (the substitution cipher, Enigma, DES, Triple DES, RC4, AES) is:
1 mark
Q24
Why does HTTPS/TLS use both asymmetric and symmetric cryptography?
1 mark
Q25
When you log in to a server with an SSH key pair, which file must never leave your own machine?
1 mark
Symmetric vs Asymmetric Keys score
0/4
—
Complete all questions to see your final score