Secret-Key Encryption
- 25Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is encryption?
The process of encoding information to protect it from unauthorized access.
Or swipe the card
25 cards
What is encryption?
The process of encoding information to protect it from unauthorized access.
What are plaintext and ciphertext?
Plaintext is the original information; ciphertext is the encoded information produced by encryption.
What does decryption do?
Decryption reverses encryption, transforming ciphertext back into the original plaintext.
What role does a key play in encryption and decryption?
A key is used with an algorithm to transform plaintext into ciphertext and to recover plaintext from ciphertext.
How do secret-key and public-key encryption differ in their use of keys?
Secret-key encryption uses the same key for encryption and decryption. Public-key encryption uses different keys for the two operations.
Why is secret-key encryption also called symmetric-key cryptography?
Because the same key is used for both encryption and decryption.
Why is public-key encryption also called asymmetric-key cryptography?
Because its encryption and decryption keys are different.
What is the result of XOR when its two input bits are the same?
The result is 0.
What is the result of XOR when its two input bits are different?
The result is 1.
What is the XOR truth table?
0⊕0=0, 0⊕1=1, 1⊕0=1, and 1⊕1=0.
How is XOR used in the simple secret-key encryption example?
The plaintext bits are XORed with the key bits, bit by bit, to produce ciphertext.
Why can XOR decrypt ciphertext when the same key is used again?
XORing a value with the same key twice restores the original value: (P⊕K)⊕K=P.
What ASCII hexadecimal bytes represent the word “attack” in the example?
The bytes are 41, 54, 54, 41, 43, and 4B in hexadecimal.
What is the example encryption key, and what is its binary representation?
The key is 73 in hexadecimal, or 01110011 in binary.
What ciphertext byte results from XORing the first plaintext byte, 41, with key byte 73?
41⊕73=32 in hexadecimal.
What ciphertext byte results from XORing plaintext byte 54 with key byte 73?
54⊕73=27 in hexadecimal.
What ciphertext byte results from XORing plaintext byte 43 with key byte 73?
43⊕73=30 in hexadecimal.
What ciphertext byte results from XORing plaintext byte 4B with key byte 73?
4B⊕73=38 in hexadecimal.
What is the full ciphertext for “attack” when each byte is XORed with key 73?
The ciphertext bytes are 32, 27, 27, 32, 30, and 38 in hexadecimal.
How does the receiver recover “attack” from the example ciphertext?
The receiver XORs each ciphertext byte with the same key, 73 in hexadecimal, recovering the original bytes 41, 54, 54, 41, 43, and 4B.
How can a known plaintext byte and its matching ciphertext byte reveal an XOR key byte?
XOR the plaintext byte with its corresponding ciphertext byte: P⊕C=K.
Why is the simple XOR example considered weak encryption?
If an attacker obtains a matching plaintext and ciphertext byte, they can XOR the pair to recover the corresponding key byte.
What is a stream cipher, as described in the example?
A cipher that encrypts information a small unit at a time, such as byte by byte.
What is a block cipher?
A cipher that encrypts data in blocks rather than processing it one byte at a time.
How do practical encryption algorithms differ from the simple XOR demonstration?
They use more complex operations and longer keys; the XOR example is only a simplified illustration, not a strong encryption technique.

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