Secret-Key Encryption
- 20Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is encryption, and what purpose does it serve?
20 questions
- 1
What is encryption, and what purpose does it serve?
Model answer
Encryption encodes information to protect it from unauthorized access.
Explanation
It transforms information into a coded form so that unauthorized people cannot readily understand it.
- 2
What are plaintext and ciphertext, and how are they related?
Model answer
Plaintext is the original information; ciphertext is the encoded form produced from it by encryption.
Explanation
Encryption transforms plaintext into ciphertext.
- 3
What does decryption do?
Model answer
Decryption reverses encryption by recovering the original plaintext from ciphertext.
Explanation
The process converts the encoded information back into its original form.
- 4
What role does a key play in encryption and decryption?
Model answer
A key is used to encode plaintext during encryption and to recover plaintext from ciphertext during decryption.
Explanation
The encryption and decryption processes use keys to perform their transformations.
- 5
How does secret-key encryption differ from public-key encryption in the keys used?
Model answer
Secret-key encryption uses the same key for encryption and decryption, while public-key encryption uses different keys for the two operations.
Explanation
The distinction is whether the encryption key and decryption key are identical.
- 6
Why is secret-key encryption also called symmetric-key cryptography?
Model answer
It is called symmetric-key cryptography because the same key is used for encryption and decryption.
Explanation
The shared key makes the two operations symmetric with respect to the key they use.
- 7
Why is public-key encryption also called asymmetric-key cryptography?
Model answer
It is called asymmetric-key cryptography because its encryption and decryption keys are different.
Explanation
Unlike secret-key encryption, it does not use one identical key for both operations.
- 8
In the example, which key does the receiver use to decrypt the ciphertext?
Model answer
The receiver uses the same key used to encrypt the plaintext:
73hexadecimal.Explanation
The example demonstrates secret-key encryption, so the same key is used for both operations.
- 9
What does the XOR operation output when its two input bits are the same, and when they differ?
Model answer
XOR outputs
0when the bits are the same and1when they differ.Explanation
Thus, the outputs for inputs
00,01,10, and11are0,1,1, and0, respectively. - 10
What is the binary representation of the example key
73hexadecimal?Model answer
The key
73hexadecimal is01110011in binary.Explanation
The example represents the key as one byte and uses its bits in the XOR operation.
- 11
In the example’s stated character encoding, what hexadecimal byte values are assigned to A, T, C, and K?
Model answer
A is
41, T is54, C is43, and K is4Bhexadecimal.Explanation
These are the character byte values stated for the example word.
- 12
How is the key applied to the plaintext bytes in the XOR example?
Model answer
The one-byte key is repeated, and each plaintext byte is XORed bit by bit with the corresponding key byte.
Explanation
Applying the same key byte to each plaintext byte produces the ciphertext bytes.
- 13
What ciphertext bytes result from XORing the example’s
ATTACKbytes with the key73hexadecimal?Model answer
The ciphertext bytes are
32 27 27 32 30 38hexadecimal.Explanation
The example XORs each stated plaintext byte with the repeated key byte
73. - 14
How does XOR with the same key recover the plaintext from the example ciphertext?
Model answer
XORing each ciphertext byte with the same key byte reverses the earlier operation and restores the original plaintext bytes.
Explanation
The example uses XOR for both encryption and decryption with the same key.
- 15
How could someone recover the key byte in the example if they knew a matching plaintext byte and ciphertext byte?
Model answer
They could XOR the plaintext byte with its corresponding ciphertext byte to recover the key byte.
Explanation
For the example’s first byte, XORing plaintext
41with ciphertext32gives the key73hexadecimal. - 16
Why is the XOR demonstration described as weak encryption?
Model answer
A matching plaintext and ciphertext byte can reveal the key byte; in this example, one such pair reveals the one-byte key.
Explanation
The example’s short key makes it easy to recover the key from a known plaintext-and-ciphertext pair.
- 17
What is a stream cipher, as described in the example?
Model answer
A stream cipher encrypts information byte by byte, as the example does.
Explanation
The example applies the operation to each byte of the plaintext individually.
- 18
What is a block cipher?
Model answer
A block cipher encrypts blocks of text rather than processing the information byte by byte.
Explanation
The content contrasts block-based encryption with the example’s byte-by-byte stream approach.
- 19
How do practical encryption algorithms differ from the simple XOR demonstration?
Model answer
Practical algorithms are more complex and use much longer keys than the simple demonstration.
Explanation
The example is presented only to illustrate secret-key encryption, not as a strong practical technique.
- 20
What does the example illustrate about the relationship between key choice and encryption strength?
Model answer
A simple operation with a short key can be weak, whereas practical encryption uses more complex methods and longer keys.
Explanation
The demonstration’s one-byte key can be recovered from a known plaintext-and-ciphertext pair.

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