Get All Weeks Symmetric Cryptography Coursera Quiz Answers
Table of Contents
Symmetric Cryptography Week 01 Quiz Answers
Quiz 1: Caesar Cipher Quiz Answers
Q1. You agreed to use a Caesar cipher with a key of k=5 with a friend. While sitting in a group, the friend hands you over a message that says “QNGWFWD”. Decrypt the message.
[expand title=View Answer] library [/expand]
Q2. Suppose you actually forgot the key. How many decryption computations of the cipher text “QNGWFWD” do you need to perform to reach to the plaintext? (Consider the worst case.)
[expand title=View Answer] 26 [/expand]
Q3. Your friend proposes an update in the key and suggests a new key, k=523. How many cyclic shifts do you need to perform using the new key? You want to minimize the number of cyclic shifts on the letters.
[expand title=View Answer] 3 [/expand]
Quiz 2: Modulo Operation and Caesar Cipher Quiz Answers
Q1. Let’s use a modified Caesar Cipher where c = (p+2x) mod 26, where c and p are the ciphertext and the plaintext, respectively, and x is the key. How many distinct keys, producing distinct encryption/decryption transformations, are there now?
[expand title=View Answer] 13 [/expand]
Q2. For c = (p+2x) mod 26, where c, p, and x are the ciphertext, the plaintext, and the key, respectively, what is the corresponding decryption? Select all that works.
[expand title=View Answer]
1.p = (c+26-2x) mod 26
2.p = (c-2x) mod 26
[/expand]
Q3. Let’s now use a modified Caesar Cipher where c = (p+3x) mod 26, where c and p are the ciphertext and the plaintext, respectively, and x is the key. How many distinct keys, producing distinct encryption/decryption transformations, are there now?
[expand title=View Answer] 26 [/expand]
Quiz 3: Vigenere Cipher Quiz Answers
Q1. Let’s use Vigenere Cipher to encrypt English text, ignoring capitalization and other symbols beyond English alphabets. The key is of length 1 and of value “Y” or 24, i.e., the key is “Y”. Which of the following statements is false?
[expand title=View Answer] This cipher transforms a plaintext alphabet to distinct ciphertext alphabets with long enough plaintext inputs. [/expand]
Q2. Vigenere cipher is used with a key “XO”. What is the ciphertext corresponding to the plaintext, DRAGON?
[expand title=View Answer] AFXULB [/expand]
Q3. Vigenere cipher is used with a key “XO” to encrypt a long English book, comprised of English alphabet letters and ignoring capitalization and other symbols. The key length is fixed, i.e., the key is 2 alphabets long. What is the number of possible distinct keys?
[expand title=View Answer] 676 [/expand]
Q4. Vigenere cipher is used with a key “XO” to encrypt a long English book. You order the letters appearing in the encrypted book in the decreasing order of frequency (i.e., from the most frequently appearing to the least frequently appearing), and the result is: RGZNFIBJWPESCXHTMYAUOLDKVQ. Which ciphertext letters correspond to the plaintext letter E (which is the most frequent letter in the plaintext)? Apply all those that apply.
[expand title=View Answer]
1.G
2.R
[/expand]
Symmetric Cryptography Week 02 Quiz Answers
Quiz 1: Rail Fence Cipher and Permutation Cipher
Q1. The Rail Fence cipher uses 4 rows/rails (the example in the lecture used 3). What is the ciphertext (the outcome of the rail fence cipher) for MEETMELATER?
[expand title=View Answer] MLEEAEMTRTE [/expand]
Q2. A Permutation Cipher has a key length of 5, e.g., one key can be [3 2 1 4 5]. How many possible keys are there?
[expand title=View Answer] 120 [/expand]
Q3. The plaintext MEETMELATER gets processed by a Permutation Cipher (with a key of [2 3 5 4 1] and no padding with extra letters. What is the corresponding ciphertext?
[expand title=View Answer] MEMERELTTEA [/expand]
Q4. The plaintext MEETMELATER gets processed by a Permutation Cipher (with a key of [2 3 5 4 1] and with padding using the letter “z” (Alice and Bob agree to use the letter z for padding). What is the corresponding ciphertext?
[expand title=View Answer] MEZMERELZTTZEAZ[/expand]
Quiz 2: Product Cipher Quiz Answers
Q1. The plaintext MEETMELATER gets processed by a product cipher, comprised of Caesar Cipher (with a key of 23) and Permutation Cipher (with a key of [5 3 1 4 2] and no padding with extra letters). What is the corresponding ciphertext?
[expand title=View Answer]BXJBBIQQJB0[/expand]
Q2. The same product cipher in the previous question, comprised of Caesar Cipher and Permutation Cipher (with a key of length 5), is again used but with different keys. Given a plaintext, how many distinct ciphertexts can there be?
[expand title=View Answer] 3120 [/expand]
Q3. The same product cipher in the previous question, comprised of Caesar Cipher and Permutation Cipher (with a key of length 5), is used to encrypt a long English book (ignoring capitalization and other symbols beyond English letters). Your friend makes the following claims. Select all those that are correct.
[expand title=View Answer]
1.”Letter Z appeared the most in the ciphertext, so it must be mapped from the latter E.
2.”The ordering between the Caesar and the Permutation does not matter within the product cipher, so we can decrypt it in any order.”
3.”If we replace the Caesar Cipher with a Monoalphabetic Cipher, then it becomes harder to crack by an attacker (who does not know the key).”
[/expand]
Symmetric Cryptography Week 03 Quiz Answers
Quiz 1: Ideal Block Cipher Quiz Answers
Q1. You are given a stream cipher and a block cipher with a block size of 64 bits. The data input is 32 bits. How many bits do you need to pad before processing the data input using a stream cipher?
[expand title=View Answer]0 [/expand]
Q2. The block cipher supports input/output of 64 bits. Which of the following is true about the key storage requirement?
[expand title=View Answer] You need hundred million to one billion 1TB-hard-drives to store the key, where TB stands for Terabytes. [/expand]
Q3. A block cipher takes a 3-bit plaintext and outputs a 3-bit ciphertext. If the cipher is an ideal block cipher, how many reversible transformations (keys) can it have?
[expand title=View Answer] 40320 [/expand]
Quiz 2: DES Quiz Answers
Q1. True or False: DES is an ideal block cipher.
[expand title=View Answer] False [/expand]
Q2. True or False: DES displaying Avalanche Effect is a limitation because it describes that an error occurring in one of the rounds propagate through the rest of the rounds.
[expand title=View Answer] False [/expand]
Q3. An attacker is equipped with a computer that performs 10 trillion (10^13) DES decryptions per second, what is the average time required, in hours, for a brute force attacker to break DES?
[expand title=View Answer] 1 [/expand]
Q4. Which of the followings are true about Feistel Cipher? Select all that applies.
[expand title=View Answer]
1.Feistel Cipher requires smaller key than ideal block cipher.
2.Feistel Cipher is a product cipher.
3.Feistel Cipher processes the data in halves.
[/expand]
Symmetric Cryptography Week 04 Quiz Answers
Quiz 1: 3-DES and 4-DES Quiz Answers
Q1. Triple-DES or 3-DES encryption can be characterized by the following: C=Enc(K3,Dec(K2,Enc(K1,P))). Each keys, K1, K2, K3 are 56-bits-long and are independent to each other (the three-key version). The DES block size is 64 bits.
Using the big O notation, which of the following best describe the meet-in-the-middle attacker’s storage requirement?
[expand title=View Answer] O(2^56) [/expand]
Q2. Triple-DES or 3-DES encryption can be characterized by the following: C=Enc(K3,Dec(K2,Enc(K1,P))). Each keys, K1, K2, K3 are 56-bits-long and are independent to each other (the three-key version). The DES block size is 64 bits.
Using the big O notation, which of the following best describe the meet-in-the-middle attacker’s encryption/decryption computational effort?
[expand title=View Answer] O(2^112) [/expand]
Q3. Triple-DES or 3-DES encryption can be characterized by the following: C=Enc(K3,Dec(K2,Enc(K1,P))). Each keys, K1, K2, K3 are 56-bits-long and are independent to each other (the three-key version). The DES block size is 64 bits.
The attacker now does not have known plaintext-ciphertext pair that it can use for her cryptanalysis. Using the big O notation, which of the following best describe the attacker’s encryption/decryption computational effort?
[expand title=View Answer] O(2^168) [/expand]
Q4. Quadruple-DES or 4-DES encryption can be characterized by the following: C=Enc(K4,Enc(K3,Enc(K2,Enc(K1,P)))). Each keys, K1, K2, K3, K4, are 56-bits-long and are independent to each other. The DES block size is 64 bits.
Using the big O notation, which of the following best describe the meet-in-the-middle attacker’s storage requirement?
[expand title=View Answer] O(2^112) [/expand]
Q5. Quadruple-DES or 4-DES encryption can be characterized by the following: C=Enc(K4,Enc(K3,Enc(K2,Enc(K1,P)))). Each keys, K1, K2, K3, K4, are 56-bits-long and are independent to each other. The DES block size is 64 bits.
Using the big O notation, which of the following best describe the meet-in-the-middle attacker’s encryption/decryption computational effort?
[expand title=View Answer] O(2^112) [/expand]
Q6. Quadruple-DES or 4-DES encryption can be characterized by the following: C=Enc(K4,Enc(K3,Enc(K2,Enc(K1,P)))). Each keys, K1, K2, K3, K4, are 56-bits-long and are independent to each other. The DES block size is 64 bits.
The attacker now does not have known plaintext-ciphertext pair that it can use for her cryptanalysis. Using the big O notation, which of the following best describe the attacker’s encryption/decryption computational effort?
[expand title=View Answer] O(2^224) [/expand]
Quiz 2: AES Quiz Answers
Q1. What is the block size for AES in Bytes?
[expand title=View Answer] 16 [/expand]
Q2. Which of the following key lengths does AES support? Select all that applies.
[expand title=View Answer]
1.256 bits
2.128 bits
3.192 bits
[/expand]
Q3. Which of the followings correspond to transposition only (no substitution)?
[expand title=View Answer] ShiftRow[/expand]
Q4. Which of the followings use the key?
[expand title=View Answer] AddRoundKey [/expand]
Q5. Which of the followings are true about AES? Select all that applies.
[expand title=View Answer]
1.The number of rounds depends on the key length.
2.AES involves both substitution and transposition.
[/expand]
Symmetric Cryptography Week 05 Quiz Answers
Quiz 1: Block Cipher Operation Modes
Q1. Which of the following describes the 2nd block encryption output of CBC mode (C2). The followings are given: E (an encryption cipher function), K (the key). C1 (the cipher output from the 1st block encryption), P2 (the plaintext for the 2nd block), and XOR (and exclusive-or function). For example, XOR(x,y) indicate the bit-by-bit XOR between the two bit vectors x and y, and E(K,P2) is the encryption output when using the key K and the plaintext P2.
[expand title=View Answer] C2 = E(K,XOR(C1,P2))[/expand]
Q2. Which of the following operation modes do not require padding (if the data does not fill the block)? Check all that applies.
[expand title=View Answer]
1.OFB
2.CTR
3.CFB
[/expand]
Q3. Which of the followings describe the 2nd block encryption output (C2) of OFB mode? The followings are given: E (an encryption cipher function), K (the key). C1 (the cipher output from the 1st block encryption), P2 (the plaintext for the 2nd block), P1 (the plaintext for the 1st block), and XOR (and exclusive-or function). For example, XOR(x,y) indicate the bit-by-bit XOR between the two bit vectors x and y, and E(K,P1) is the encryption output when using the key K and the plaintext P1.
[expand title=View Answer] C2 = XOR(P2,E(K,XOR(C1,P1))) [/expand]
Q4. Suppose a small, low-power device experiences that a real-time computation of the encryption/decryption function is burdensome (e.g., serving as the bottleneck of the performance) and wants to compute the encryption/decryption functions offline (e.g., computed before the plaintext/ciphertext). Which of the following block cipher operation modes support such feature? Check all that applies.
[expand title=View Answer]
OFB
CTR
[/expand]
Q5. You are given a block cipher with a block size of 64 bits. Given a data input of 32 bits, how many bits do you need to pad if the using the ECB operation mode?
[expand title=View Answer] 32 [/expand]
Q6. You are given a block cipher with a block size of 64 bits. Given a data input of 32 bits, how many bits do you need to pad if the using the CFB operation mode?
[expand title=View Answer] 0 [/expand]
Q7. Alice and Bob is not synchronized in time, and their clock frequency is different. Which of the block cipher operation modes would be affected by such lack of synchronization? Check all that applies.
[expand title=View Answer]CTR [/expand]
Q8. Suppose Pi indicates the plaintext input for the block cipher i from the sender’s perspective, e.g., P2 is the plaintext input for the 2nd block cipher, and Ci is the ciphertext input for the block cipher i from the receiver’s perspective. (If there were no errors, Ci is also the ciphertext output of the block cipher i from the sender.) Which of the following scenarios causing errors affect C3 (and cause error in C3)? Select all that applies.
[expand title=View Answer]
1.Error occurs on P2 for CFB Mode.
2.Error occurs on P1 for CBC Mode.
[/expand]
Symmetric Cryptography Course Review
In our experience, we suggest you enroll in Symmetric Cryptography courses and gain some new skills from Professionals completely free and we assure you will be worth it.
Symmetric Cryptography for free, if you are stuck anywhere between a quiz or a graded assessment quiz, just visit Networking Funda to get Symmetric Cryptography Coursear Quiz Answers.
Get All Course Quiz Answers of Machine Learning Specialization
Cryptography and Information Theory Quiz Answers
Symmetric Cryptography Coursera Quiz Answers
Asymmetric Cryptography and Key Management Quiz Answers
Cryptographic Hash and Integrity Protection Quiz Answers