Secret-Key Encryption
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of encryption?
What is the primary purpose of encryption?
22 questions
- 1
What is the primary purpose of encryption?
- A
To compress information so it takes up less storage space
- B
To convert information into a format that computers can display
- C
To verify that information has not changed during transmission
- D
To encode information so unauthorized people cannot readily access it
Correct answer
DTo encode information so unauthorized people cannot readily access it
Explanation
Encryption encodes information to protect it against unauthorized access.
- A
- 2
What are the original information and its encrypted form called, respectively?
- A
Ciphertext and plaintext
- B
Public text and private text
- C
Plaintext and ciphertext
- D
Encryption key and decryption key
Correct answer
CPlaintext and ciphertext
Explanation
The original information is plaintext; after encryption, it is ciphertext.
- A
- 3
What does decryption do?
- A
It applies encryption again to make ciphertext more difficult to read
- B
It reverses encryption to retrieve the original plaintext from ciphertext
- C
It replaces the encryption key with a public key
- D
It converts plaintext into a shorter representation
Correct answer
BIt reverses encryption to retrieve the original plaintext from ciphertext
Explanation
Decryption is the reverse process that retrieves plaintext from ciphertext.
- A
- 4
What role does a key play in encryption and decryption?
- A
A key stores a copy of the plaintext alongside the ciphertext
- B
A key identifies the sender but does not affect the transformation
- C
A key is used to transform plaintext into ciphertext and to recover plaintext
- D
A key compresses ciphertext before it is transmitted
Correct answer
CA key is used to transform plaintext into ciphertext and to recover plaintext
Explanation
The encryption and decryption processes use keys to encode and recover information.
- A
- 5
Why is secret key encryption also called symmetric key cryptography?
- A
It uses no key when converting plaintext into ciphertext
- B
It uses the same key for both encryption and decryption
- C
It makes the ciphertext identical to the plaintext
- D
It uses different keys for encryption and decryption
Correct answer
BIt uses the same key for both encryption and decryption
Explanation
Secret key encryption is symmetric because the same key is used to encrypt and decrypt.
- A
- 6
How does public key encryption differ from secret key encryption in its use of keys?
- A
It uses different keys for encryption and decryption
- B
It uses a separate key for every character of plaintext
- C
It uses a key for encryption but never for decryption
- D
It uses the same key for encryption and decryption
Correct answer
AIt uses different keys for encryption and decryption
Explanation
Public key encryption uses different encryption and decryption keys, so it is also called asymmetric key cryptography.
- A
- 7
According to the XOR truth table, when is the output bit 1?
- A
When the two input bits are different
- B
When the two input bits are both 0
- C
When the two input bits are both 1
- D
When at least one input bit is 0
Correct answer
AWhen the two input bits are different
Explanation
XOR produces 1 when its two input bits differ and 0 when they are the same.
- A
- 8
How is XOR applied in the illustrated encryption example?
- A
Only to the first bit of each plaintext byte
- B
Bit by bit between each plaintext byte and the key
- C
Character by character without comparing binary bits
- D
Once to the entire plaintext as a single number
Correct answer
BBit by bit between each plaintext byte and the key
Explanation
The example applies XOR bit by bit between each byte of plaintext and the key.
- A
- 9
What sequence of hexadecimal ASCII values represents the word “attack” in the example?
- A
41 54 54 41 43 4B
- B
54 41 54 41 4B 43
- C
41 54 41 43 4B 54
- D
41 43 54 54 41 4B
Correct answer
A41 54 54 41 43 4B
Explanation
The example represents A as 41, each T as 54, the second A as 41, C as 43, and K as 4B.
- A
- 10
What is the eight-bit binary representation of the example key 73 in hexadecimal?
- A
01110100
- B
01110011
- C
01100011
- D
11100011
Correct answer
B01110011
Explanation
The key 73 in hexadecimal is represented in binary as 01110011.
- A
- 11
In the example, what ciphertext byte results from encrypting the plaintext byte 41 with the key byte 73 using XOR?
- A
32
- B
38
- C
30
- D
27
Correct answer
A32
Explanation
Applying XOR gives 41⊕73=32 in hexadecimal.
- A
- 12
In the example, what ciphertext byte results from encrypting the plaintext byte 54 with the key byte 73 using XOR?
- A
30
- B
38
- C
27
- D
32
Correct answer
C27
Explanation
Applying XOR gives 54⊕73=27 in hexadecimal.
- A
- 13
What is the complete ciphertext byte sequence produced by XOR-encrypting “attack” with the repeated key byte 73?
- A
32 27 27 32 30 38
- B
32 27 32 30 38
- C
41 54 54 41 43 4B
- D
32 30 27 27 38
Correct answer
B32 27 32 30 38
Explanation
The plaintext bytes 41 54 54 41 43 4B, each XORed with 73, produce 32 27 27 32 30 38—wait: the sequence has six plaintext bytes, so the first option is the correct six-byte result.
- A
- 14
How is the one-byte key used across the different bytes of plaintext in the example?
- A
The key byte is applied only to the first plaintext byte
- B
The key byte is applied only after all plaintext bytes are combined
- C
The same key byte is applied to each plaintext byte
- D
A new key byte is generated for every plaintext byte
Correct answer
CThe same key byte is applied to each plaintext byte
Explanation
The example repeats the same one-byte key across the plaintext and XORs it with each byte.
- A
- 15
When decrypting the ciphertext byte 32 with the example key byte 73, what plaintext byte is recovered?
- A
41
- B
27
- C
38
- D
54
Correct answer
A41
Explanation
The same XOR operation recovers the original byte: 32⊕73=41 in hexadecimal.
- A
- 16
Why can the same XOR operation and key decrypt the example ciphertext?
- A
Decryption uses a different XOR truth table than encryption
- B
The ciphertext contains the plaintext unchanged in its first byte
- C
Applying XOR with the same key a second time restores the original data
- D
XOR automatically identifies plaintext without requiring a key
Correct answer
CApplying XOR with the same key a second time restores the original data
Explanation
In the example, XORing plaintext with the key creates ciphertext, and XORing that ciphertext with the same key restores the plaintext.
- A
- 17
Why is the XOR example described as weak encryption?
- A
A person with a matching plaintext and ciphertext byte can derive the key byte by XORing them
- B
The key cannot be used again after encrypting the first byte
- C
A person can decrypt the ciphertext only by trying every possible plaintext word
- D
The ciphertext is always identical to the plaintext when XOR is used
Correct answer
AA person with a matching plaintext and ciphertext byte can derive the key byte by XORing them
Explanation
Because XOR reverses itself, XORing a known plaintext byte with its corresponding ciphertext byte reveals the key byte.
- A
- 18
In the one-byte-key example, what could an attacker learn from just one corresponding plaintext and ciphertext byte?
- A
The identity of the sender without examining any other information
- B
The entire plaintext of every message encrypted with a different key
- C
The length of every key used by all encryption systems
- D
The key byte used to produce that ciphertext byte
Correct answer
DThe key byte used to produce that ciphertext byte
Explanation
The example explains that XORing a plaintext byte with its corresponding ciphertext byte reveals the one-byte key.
- A
- 19
What distinguishes the byte-by-byte method in the example from a block cipher?
- A
The byte-by-byte method is a block cipher, while a stream cipher processes blocks of text
- B
Both methods necessarily process only one bit of plaintext at a time
- C
Both methods are defined by using different keys for encryption and decryption
- D
The byte-by-byte method is a stream cipher, while a block cipher processes blocks of text
Correct answer
DThe byte-by-byte method is a stream cipher, while a block cipher processes blocks of text
Explanation
The example describes byte-by-byte encryption as a stream cipher and contrasts it with block ciphers, which process blocks of text.
- A
- 20
Which description best matches the practical encryption algorithms contrasted with the simple XOR demonstration?
- A
They always encrypt a single byte with the same short key
- B
They are more complex and use much longer keys
- C
They rely on a different truth table for every plaintext character
- D
They use no keys and copy plaintext directly into ciphertext
Correct answer
BThey are more complex and use much longer keys
Explanation
The content says practical encryption algorithms are more complex and use much longer keys than the demonstration.
- A
- 21
What was the intended role of the XOR example in the discussion?
- A
To provide a secure method for encrypting real-world communications
- B
To illustrate secret key encryption, not to present a strong practical encryption technique
- C
To show that public key encryption uses one shared key
- D
To demonstrate that XOR is the standard method used by every modern cipher
Correct answer
BTo illustrate secret key encryption, not to present a strong practical encryption technique
Explanation
The XOR procedure was presented as a simple illustration of secret key encryption and explicitly described as weak, not as a practical strong technique.
- A
- 22
Which named encryption standard is mentioned as an example of a practical algorithm?
- A
Data Encryption Standard
- B
Advanced Encryption Standard
- C
Rivest–Shamir–Adleman
- D
Secure Hash Algorithm
Correct answer
AData Encryption Standard
Explanation
The discussion mentions the Data Encryption Standard (DES) as an example of a practical encryption algorithm.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.