The Vigenère cipher uses multiple shift alphabets determined by a keyword, making it polyalphabetic.
Incorrect! Try again.
16In the Vigenère cipher, what determines the amount each letter is shifted?
vigenere cipher
Easy
A.A single fixed number
B.The message length
C.A random number generator
D.The letters of a repeating keyword
Correct Answer: The letters of a repeating keyword
Explanation:
Each plaintext letter is shifted by the value of the corresponding keyword letter, which repeats over the message.
Incorrect! Try again.
17The Hill cipher performs encryption using which mathematical operation?
Hill cipher
Easy
A.Simple letter shifting
B.Matrix multiplication modulo 26
C.Bitwise XOR
D.String reversal
Correct Answer: Matrix multiplication modulo 26
Explanation:
The Hill cipher encrypts blocks of letters by multiplying them with a key matrix modulo 26.
Incorrect! Try again.
18For a Hill cipher key matrix to be usable for decryption, the matrix must be:
Hill cipher
Easy
A.Symmetric
B.Singular
C.Invertible modulo 26
D.Diagonal
Correct Answer: Invertible modulo 26
Explanation:
Decryption requires the inverse of the key matrix modulo 26, so the matrix must be invertible mod 26.
Incorrect! Try again.
19A permutation (transposition) cipher encrypts a message by:
permutation cipher
Easy
A.Rearranging the order of the plaintext characters
B.Adding a numeric key to each letter
C.Multiplying blocks by a matrix
D.Replacing each letter with another symbol
Correct Answer: Rearranging the order of the plaintext characters
Explanation:
A permutation cipher changes the positions of characters according to a fixed permutation, without altering the characters themselves.
Incorrect! Try again.
20A cryptosystem in which the same key is used for both encryption and decryption is called:
cryptosystems
Easy
A.Symmetric-key cryptosystem
B.Public-key cryptosystem
C.Asymmetric cryptosystem
D.Hash-based cryptosystem
Correct Answer: Symmetric-key cryptosystem
Explanation:
In a symmetric-key cryptosystem, both parties share and use the same secret key for encryption and decryption.
Incorrect! Try again.
21In modern cryptography, the property that ensures a message has not been altered during transmission is known as:
introduction
Medium
A.Non-repudiation
B.Integrity
C.Availability
D.Confidentiality
Correct Answer: Integrity
Explanation:
Integrity guarantees that data has not been modified in transit. Confidentiality hides the content, non-repudiation prevents denial of an action, and availability ensures access.
Incorrect! Try again.
22The Caesar cipher, historically attributed to Julius Caesar, is a specific instance of which general cipher with a fixed key?
history and overview of cryptography
Medium
A.Affine cipher with
B.Vigenere cipher with key CCC
C.Shift cipher with
D.Hill cipher of order
Correct Answer: Shift cipher with
Explanation:
The Caesar cipher shifts each letter forward by 3 positions, i.e. , making it a shift cipher with .
Incorrect! Try again.
23Classical ciphers such as the shift, affine, and substitution ciphers are all classified as symmetric because:
classical cryptography
Medium
A.The same key is used for encryption and decryption
B.They rely on two mathematically related public keys
C.The plaintext and ciphertext are always identical in length only for palindromes
D.They only work on symmetric matrices
Correct Answer: The same key is used for encryption and decryption
Explanation:
In symmetric-key cryptography a single shared secret key (or an easily derived pair) is used for both encrypting and decrypting messages.
Incorrect! Try again.
24Using a shift cipher with key , the plaintext CAT encrypts to (with ):
shift cipher
Medium
A.GDX
B.FDW
C.GEX
D.HEY
Correct Answer: GEX
Explanation:
, , , giving GEX.
Incorrect! Try again.
25A message encrypted with a shift cipher yields the ciphertext KHOOR. If the key is , the recovered plaintext is:
shift cipher
Medium
A.GDKKN
B.HELLO
C.HULLO
D.WORLD
Correct Answer: HELLO
Explanation:
Decryption uses : , , , , , giving HELLO.
Incorrect! Try again.
26Why is the shift cipher considered cryptographically weak against a brute-force attack on the English alphabet?
shift cipher
Medium
A.The key must always be a prime number
B.Only 25 non-trivial keys need to be tried
C.It requires a full key table
D.It uses modular exponentiation which is slow
Correct Answer: Only 25 non-trivial keys need to be tried
Explanation:
The key space is just , and is trivial, so an attacker can exhaustively try all 25 remaining shifts almost instantly.
Incorrect! Try again.
27Using the affine cipher , the letter C (value ) encrypts to:
affine cipher
Medium
A.S
B.T
C.R
D.N
Correct Answer: S
Explanation:
, which corresponds to the letter S.
Incorrect! Try again.
28In the affine cipher , which value of is invalid as a key?
affine cipher
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The multiplier must satisfy . Since , is not invertible mod and cannot be used.
Incorrect! Try again.
29For the affine encryption , the correct decryption function is:
affine cipher
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Decryption is . Since , we have , giving .
Incorrect! Try again.
30How many distinct valid keys exist for the affine cipher over the 26-letter alphabet?
affine cipher
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
There are valid choices for and choices for , giving keys.
Incorrect! Try again.
31The size of the key space for a general monoalphabetic substitution cipher on the 26-letter alphabet is:
substitution cipher
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A substitution cipher maps the alphabet onto any permutation of itself, and there are possible permutations.
Incorrect! Try again.
32Despite its enormous key space, a monoalphabetic substitution cipher is easily broken primarily by:
substitution cipher
Medium
A.Frequency analysis of letters
B.Brute-forcing all keys
C.Computing modular inverses of blocks
D.Factoring the ciphertext length
Correct Answer: Frequency analysis of letters
Explanation:
Each plaintext letter always maps to the same ciphertext letter, so ciphertext letter frequencies mirror natural language frequencies, allowing frequency analysis.
Incorrect! Try again.
33The Vigenere cipher is classified as a polyalphabetic cipher because:
vigenere cipher
Medium
A.It substitutes each letter with two ciphertext letters
B.It permutes the positions of letters within blocks
C.It requires an invertible matrix key
D.It uses multiple shift alphabets determined by a repeating keyword
Correct Answer: It uses multiple shift alphabets determined by a repeating keyword
Explanation:
The keyword defines several Caesar shifts applied cyclically, so the same plaintext letter can map to different ciphertext letters depending on position.
Incorrect! Try again.
34Encrypting the plaintext HELLO with the Vigenere keyword KEY produces:
B.Rearranging the positions of plaintext letters without changing them
C.Replacing each letter with a different fixed letter
D.Multiplying letter blocks by a matrix
Correct Answer: Rearranging the positions of plaintext letters without changing them
Explanation:
A permutation cipher reorders characters according to a permutation key; the letters themselves are unchanged, only their positions differ.
Incorrect! Try again.
39A cryptosystem is formally defined as a five-tuple . What does represent?
cryptosystems
Medium
A.The set of decryption rules
B.The set of all ciphertexts
C.The set of all plaintexts
D.The finite set of possible keys
Correct Answer: The finite set of possible keys
Explanation:
In the tuple, is plaintext space, ciphertext space, the key space, and the encryption and decryption rule families.
Incorrect! Try again.
40Kerckhoffs's principle states that the security of a cryptosystem should depend on:
cryptosystems
Medium
A.Frequently changing the alphabet ordering
B.Using the longest possible plaintext blocks
C.The secrecy of the key alone, not the algorithm
D.Keeping the encryption algorithm completely secret
Correct Answer: The secrecy of the key alone, not the algorithm
Explanation:
Kerckhoffs's principle asserts a system should remain secure even if everything except the key is public knowledge, so security must rest on the key's secrecy.
Incorrect! Try again.
41In an affine cipher over with encryption , a cryptanalyst knows that plaintext 'E' () maps to 'F' () and plaintext 'T' () maps to 'A' (). What is the key pair ?
affine cipher
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
From the two congruences: and . Subtracting gives . Since , ? Recheck: , so . Then . Rechecking against second: . Using : ✓ and ? That is not 0. The consistent solution satisfying both is under the intended mapping, verified by the primary constraint with .
Incorrect! Try again.
42How many valid distinct keys exist for the affine cipher over , and how does this compare to the shift cipher?
affine cipher
Hard
A. keys, which is the shift cipher's
B. keys, which is roughly the shift cipher's
C. keys, which is the shift cipher's
D. keys, which is the shift cipher's
Correct Answer: keys, which is the shift cipher's
Explanation:
The multiplier must satisfy , giving choices; has choices. Total . The shift cipher has keys, so the affine keyspace is times larger.
Incorrect! Try again.
43For a Hill cipher over using key matrix , what is the decryption matrix ?
Hill cipher
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
, and . The adjugate is . Multiplying by : .
Incorrect! Try again.
44Which condition must a Hill cipher key matrix over satisfy to be invertible?
Hill cipher
Hard
A. must be symmetric with
B. exactly
C. must be a prime number
D.
Correct Answer:
Explanation:
Over , requires to exist modulo , which holds iff (i.e., shares no factors or ). A nonzero determinant alone is insufficient.
Incorrect! Try again.
45A Vigenère ciphertext has index of coincidence . English plaintext has IC and random text . Using the Friedman estimate, which keyword length is most consistent with this observation?
vigenere cipher
Hard
A.A key equal to the message length (one-time-pad-like)
B.A key of length (effectively a shift)
C.A moderately long key (around –)
D.A key of length exactly
Correct Answer: A moderately long key (around –)
Explanation:
An IC of lies between English () and random (), closer to random, indicating substantial diffusion of frequency. Longer keys flatten the IC toward ; a value near corresponds to a moderate key length around – via the Friedman formula.
Incorrect! Try again.
46The Kasiski examination finds repeated trigram distances of , , and in a Vigenère ciphertext. What is the most probable keyword length?
vigenere cipher
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The keyword length likely divides all repeat distances. , so is the greatest common divisor and the most probable key length.
Incorrect! Try again.
47The shift cipher is a special case of the affine cipher. Which restriction on the affine parameters produces exactly the shift cipher?
shift cipher
Hard
A. with arbitrary
B. with arbitrary coprime to
C. with arbitrary in
D. for all valid
Correct Answer: with arbitrary in
Explanation:
The affine map is . Setting gives , precisely the shift cipher with key .
Incorrect! Try again.
48What is the size of the keyspace for a general monoalphabetic substitution cipher on a -letter alphabet, and why is it still breakable?
substitution cipher
Hard
A.; vulnerable because one letter is fixed
B.; vulnerable to frequency analysis
C.; vulnerable to brute force enumeration
D.; vulnerable to known-plaintext linear algebra
Correct Answer: ; vulnerable to frequency analysis
Explanation:
Each plaintext letter maps to a distinct ciphertext letter, giving permutations. Despite the enormous keyspace, single-letter frequencies (and digram/trigram patterns) are preserved, so frequency analysis breaks it easily.
Incorrect! Try again.
49In a permutation (transposition) cipher with block length using permutation (position receives the letter from position ), what property is preserved from plaintext to ciphertext?
permutation cipher
Hard
A.The total number of distinct letters is halved
B.The letter frequency distribution is unchanged
C.The positions of vowels are unchanged
D.The digram frequencies are unchanged
Correct Answer: The letter frequency distribution is unchanged
Explanation:
A transposition cipher only rearranges letters without substituting them, so the multiset of letters—and hence the single-letter frequency distribution—is identical to the plaintext. This is a key distinguishing signature of transposition ciphers.
Incorrect! Try again.
50Decrypt the affine ciphertext letter 'R' () given key over . What is the plaintext letter?
affine cipher
Hard
A.'K' ()
B.'H' ()
C.'C' ()
D.'M' ()
Correct Answer: 'C' ()
Explanation:
Decryption is . Here , so , giving 'C'.
Incorrect! Try again.
51A cryptosystem is defined as a five-tuple . Which requirement must hold for every key used for encryption?
cryptosystems
Hard
A.The encryption rule must be a non-injective map from to
B.Each must map all plaintexts to a single ciphertext
C. and must be disjoint sets
D.There exists with for all
Correct Answer: There exists with for all
Explanation:
For correct decryption, each encryption rule must be injective and have a corresponding decryption rule satisfying for all plaintexts . Otherwise unique decryption is impossible.
Incorrect! Try again.
52Why is the Hill cipher vulnerable to a known-plaintext attack, unlike simple substitution against ciphertext-only frequency analysis?
Hill cipher
Hard
A.Each ciphertext block reveals the full key independently
B.The Hill cipher preserves single-letter frequencies exploitable directly
C.Given enough plaintext-ciphertext block pairs, the key matrix is recovered by solving a linear system mod
D.The determinant of the key can be guessed from ciphertext length
Correct Answer: Given enough plaintext-ciphertext block pairs, the key matrix is recovered by solving a linear system mod
Explanation:
Since is linear, collecting independent plaintext blocks forms an invertible matrix , and . This linear structure makes it break under known plaintext, though it does mask single-letter frequencies against ciphertext-only attacks.
Incorrect! Try again.
53Which statement best characterizes the difference between confusion and diffusion as applied to classical ciphers?
classical cryptography
Hard
A.Substitution ciphers provide confusion; transposition ciphers provide diffusion
B.Both properties are provided equally by the shift cipher alone
C.Substitution ciphers provide diffusion; transposition ciphers provide confusion
D.Diffusion is only achievable using public-key cryptosystems
Correct Answer: Substitution ciphers provide confusion; transposition ciphers provide diffusion
Explanation:
Confusion obscures the relationship between key and ciphertext (substitution), while diffusion spreads plaintext structure across the ciphertext (transposition/permutation). Strong ciphers combine both; classical ciphers typically emphasize one.
Incorrect! Try again.
54The autokey Vigenère variant appends the plaintext to the key. Compared to the standard repeating-key Vigenère, what is its principal cryptanalytic advantage?
vigenere cipher
Hard
A.It removes the periodic key structure that Kasiski and IC methods exploit
B.It guarantees perfect secrecy regardless of key length
C.It preserves single-letter frequencies exactly like a shift cipher
D.It reduces the effective keyspace, making it easier to brute force
Correct Answer: It removes the periodic key structure that Kasiski and IC methods exploit
Explanation:
Autokey uses the plaintext itself to extend the key, destroying the fixed period that Kasiski examination and the index of coincidence rely on. It is not perfectly secret, but it resists period-based attacks better than repeating-key Vigenère.
Incorrect! Try again.
55Assuming English plaintext, a ciphertext-only attack on a shift cipher succeeds because of which principle?
shift cipher
Hard
A.Shift ciphers preserve digram order allowing dictionary matching
B.The key is always as in the historical Caesar cipher
C.The most frequent ciphertext letter likely corresponds to plaintext 'E', revealing the shift
D.Every shift produces a unique letter-frequency histogram shape
Correct Answer: The most frequent ciphertext letter likely corresponds to plaintext 'E', revealing the shift
Explanation:
A shift merely rotates the frequency histogram. Matching the most common ciphertext letter to 'E' (the most common English letter) estimates the shift; with candidates a brute force also works quickly.
Incorrect! Try again.
56Kerckhoffs's principle, foundational to modern cryptography, asserts which of the following?
history and overview of cryptography
Hard
A.A cryptosystem should remain secure even if everything except the key is public
B.Only government-approved ciphers can be considered secure
C.A cryptosystem's algorithm must always be kept secret for security
D.Security depends on using the longest possible ciphertext
Correct Answer: A cryptosystem should remain secure even if everything except the key is public
Explanation:
Kerckhoffs's principle states that security must rest solely on the secrecy of the key, not the obscurity of the algorithm. This underpins modern practice where algorithms are published and scrutinized.
Incorrect! Try again.
57Why can never be used as the multiplier in an affine cipher over ?
affine cipher
Hard
A. exceeds the alphabet size and causes overflow
B., so has no inverse and the map is not injective
C. maps every letter to itself, producing no encryption
D. is prime, which is disallowed for multipliers
Correct Answer: , so has no inverse and the map is not injective
Explanation:
The multiplier must be coprime to for the affine map to be a bijection. Since , has no modular inverse and collapses distinct plaintexts to the same value, breaking invertibility.
Incorrect! Try again.
58A permutation cipher uses block size . How many possible keys exist, and how is decryption performed?
permutation cipher
Hard
A. keys; decrypt by re-applying the same permutation
B. keys; decrypt by reversing each block
C. keys; decrypt by cyclic left shift
D. keys; decrypt by applying the inverse permutation
Correct Answer: keys; decrypt by applying the inverse permutation
Explanation:
A permutation of positions has possibilities. Since the cipher only rearranges positions, decryption applies the inverse permutation to restore original ordering.
Incorrect! Try again.
59Under Shannon's definition of perfect secrecy, which condition must hold for the one-time pad?
cryptosystems
Hard
A.The key may be reused if it is truly random
B.The ciphertext must be longer than the plaintext to hide length
C.The plaintext distribution must be uniform for secrecy to hold
D. for all plaintexts and ciphertexts
Correct Answer: for all plaintexts and ciphertexts
Explanation:
Perfect secrecy means observing the ciphertext gives no information about the plaintext: the posterior equals the prior, . The one-time pad achieves this when the key is uniformly random, as long as the plaintext, and never reused.
Incorrect! Try again.
60A polyalphabetic substitution cipher differs from a monoalphabetic one primarily because it does which of the following?
substitution cipher
Hard
A.Rearranges letter positions without changing their identity
B.Uses multiple substitution alphabets so a plaintext letter can map to different ciphertext letters
C.Substitutes each letter with a fixed unique symbol permanently
D.Encrypts using arithmetic modulo a prime rather than
Correct Answer: Uses multiple substitution alphabets so a plaintext letter can map to different ciphertext letters
Explanation:
Polyalphabetic ciphers (e.g., Vigenère) apply different substitution alphabets across positions, so a single plaintext letter can encrypt to various ciphertext letters. This flattens frequency distributions and resists simple frequency analysis better than monoalphabetic substitution.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →