1. Home
  2. Explore
  3. Computer Science
  4. Secret-Key Encryption

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Secret-Key Encryption

  • 22Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Encryption Fundamentals

What is the primary purpose of encryption?

22 questions

  1. 1

    What is the primary purpose of encryption?

    1. A

      To compress information so it takes up less storage space

    2. B

      To convert information into a format that computers can display

    3. C

      To verify that information has not changed during transmission

    4. D

      To encode information so unauthorized people cannot readily access it

    Correct answer
    D

    To encode information so unauthorized people cannot readily access it

    Explanation

    Encryption encodes information to protect it against unauthorized access.

  2. 2

    What are the original information and its encrypted form called, respectively?

    1. A

      Ciphertext and plaintext

    2. B

      Public text and private text

    3. C

      Plaintext and ciphertext

    4. D

      Encryption key and decryption key

    Correct answer
    C

    Plaintext and ciphertext

    Explanation

    The original information is plaintext; after encryption, it is ciphertext.

  3. 3

    What does decryption do?

    1. A

      It applies encryption again to make ciphertext more difficult to read

    2. B

      It reverses encryption to retrieve the original plaintext from ciphertext

    3. C

      It replaces the encryption key with a public key

    4. D

      It converts plaintext into a shorter representation

    Correct answer
    B

    It reverses encryption to retrieve the original plaintext from ciphertext

    Explanation

    Decryption is the reverse process that retrieves plaintext from ciphertext.

  4. 4

    What role does a key play in encryption and decryption?

    1. A

      A key stores a copy of the plaintext alongside the ciphertext

    2. B

      A key identifies the sender but does not affect the transformation

    3. C

      A key is used to transform plaintext into ciphertext and to recover plaintext

    4. D

      A key compresses ciphertext before it is transmitted

    Correct answer
    C

    A 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.

  5. 5

    Why is secret key encryption also called symmetric key cryptography?

    1. A

      It uses no key when converting plaintext into ciphertext

    2. B

      It uses the same key for both encryption and decryption

    3. C

      It makes the ciphertext identical to the plaintext

    4. D

      It uses different keys for encryption and decryption

    Correct answer
    B

    It 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.

  6. 6

    How does public key encryption differ from secret key encryption in its use of keys?

    1. A

      It uses different keys for encryption and decryption

    2. B

      It uses a separate key for every character of plaintext

    3. C

      It uses a key for encryption but never for decryption

    4. D

      It uses the same key for encryption and decryption

    Correct answer
    A

    It 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.

  7. 7

    According to the XOR truth table, when is the output bit 111?

    1. A

      When the two input bits are different

    2. B

      When the two input bits are both 000

    3. C

      When the two input bits are both 111

    4. D

      When at least one input bit is 000

    Correct answer
    A

    When the two input bits are different

    Explanation

    XOR produces 111 when its two input bits differ and 000 when they are the same.

  8. 8

    How is XOR applied in the illustrated encryption example?

    1. A

      Only to the first bit of each plaintext byte

    2. B

      Bit by bit between each plaintext byte and the key

    3. C

      Character by character without comparing binary bits

    4. D

      Once to the entire plaintext as a single number

    Correct answer
    B

    Bit 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.

  9. 9

    What sequence of hexadecimal ASCII values represents the word “attack” in the example?

    1. A

      41 54 54 41 43 4B41\ 54\ 54\ 41\ 43\ 4B41 54 54 41 43 4B

    2. B

      54 41 54 41 4B 4354\ 41\ 54\ 41\ 4B\ 4354 41 54 41 4B 43

    3. C

      41 54 41 43 4B 5441\ 54\ 41\ 43\ 4B\ 5441 54 41 43 4B 54

    4. D

      41 43 54 54 41 4B41\ 43\ 54\ 54\ 41\ 4B41 43 54 54 41 4B

    Correct answer
    A

    41 54 54 41 43 4B41\ 54\ 54\ 41\ 43\ 4B41 54 54 41 43 4B

    Explanation

    The example represents A as 414141, each T as 545454, the second A as 414141, C as 434343, and K as 4B4B4B.

  10. 10

    What is the eight-bit binary representation of the example key 737373 in hexadecimal?

    1. A

      011101000111010001110100

    2. B

      011100110111001101110011

    3. C

      011000110110001101100011

    4. D

      111000111110001111100011

    Correct answer
    B

    011100110111001101110011

    Explanation

    The key 737373 in hexadecimal is represented in binary as 011100110111001101110011.

  11. 11

    In the example, what ciphertext byte results from encrypting the plaintext byte 414141 with the key byte 737373 using XOR?

    1. A

      323232

    2. B

      383838

    3. C

      303030

    4. D

      272727

    Correct answer
    A

    323232

    Explanation

    Applying XOR gives 41⊕73=3241 \oplus 73 = 3241⊕73=32 in hexadecimal.

  12. 12

    In the example, what ciphertext byte results from encrypting the plaintext byte 545454 with the key byte 737373 using XOR?

    1. A

      303030

    2. B

      383838

    3. C

      272727

    4. D

      323232

    Correct answer
    C

    272727

    Explanation

    Applying XOR gives 54⊕73=2754 \oplus 73 = 2754⊕73=27 in hexadecimal.

  13. 13

    What is the complete ciphertext byte sequence produced by XOR-encrypting “attack” with the repeated key byte 737373?

    1. A

      32 27 27 32 30 3832\ 27\ 27\ 32\ 30\ 3832 27 27 32 30 38

    2. B

      32 27 32 30 3832\ 27\ 32\ 30\ 3832 27 32 30 38

    3. C

      41 54 54 41 43 4B41\ 54\ 54\ 41\ 43\ 4B41 54 54 41 43 4B

    4. D

      32 30 27 27 3832\ 30\ 27\ 27\ 3832 30 27 27 38

    Correct answer
    B

    32 27 32 30 3832\ 27\ 32\ 30\ 3832 27 32 30 38

    Explanation

    The plaintext bytes 41 54 54 41 43 4B41\ 54\ 54\ 41\ 43\ 4B41 54 54 41 43 4B, each XORed with 737373, produce 32 27 27 32 30 3832\ 27\ 27\ 32\ 30\ 3832 27 27 32 30 38—wait: the sequence has six plaintext bytes, so the first option is the correct six-byte result.

  14. 14

    How is the one-byte key used across the different bytes of plaintext in the example?

    1. A

      The key byte is applied only to the first plaintext byte

    2. B

      The key byte is applied only after all plaintext bytes are combined

    3. C

      The same key byte is applied to each plaintext byte

    4. D

      A new key byte is generated for every plaintext byte

    Correct answer
    C

    The 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.

  15. 15

    When decrypting the ciphertext byte 323232 with the example key byte 737373, what plaintext byte is recovered?

    1. A

      414141

    2. B

      272727

    3. C

      383838

    4. D

      545454

    Correct answer
    A

    414141

    Explanation

    The same XOR operation recovers the original byte: 32⊕73=4132 \oplus 73 = 4132⊕73=41 in hexadecimal.

  16. 16

    Why can the same XOR operation and key decrypt the example ciphertext?

    1. A

      Decryption uses a different XOR truth table than encryption

    2. B

      The ciphertext contains the plaintext unchanged in its first byte

    3. C

      Applying XOR with the same key a second time restores the original data

    4. D

      XOR automatically identifies plaintext without requiring a key

    Correct answer
    C

    Applying 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.

  17. 17

    Why is the XOR example described as weak encryption?

    1. A

      A person with a matching plaintext and ciphertext byte can derive the key byte by XORing them

    2. B

      The key cannot be used again after encrypting the first byte

    3. C

      A person can decrypt the ciphertext only by trying every possible plaintext word

    4. D

      The ciphertext is always identical to the plaintext when XOR is used

    Correct answer
    A

    A 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.

  18. 18

    In the one-byte-key example, what could an attacker learn from just one corresponding plaintext and ciphertext byte?

    1. A

      The identity of the sender without examining any other information

    2. B

      The entire plaintext of every message encrypted with a different key

    3. C

      The length of every key used by all encryption systems

    4. D

      The key byte used to produce that ciphertext byte

    Correct answer
    D

    The 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.

  19. 19

    What distinguishes the byte-by-byte method in the example from a block cipher?

    1. A

      The byte-by-byte method is a block cipher, while a stream cipher processes blocks of text

    2. B

      Both methods necessarily process only one bit of plaintext at a time

    3. C

      Both methods are defined by using different keys for encryption and decryption

    4. D

      The byte-by-byte method is a stream cipher, while a block cipher processes blocks of text

    Correct answer
    D

    The 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.

  20. 20

    Which description best matches the practical encryption algorithms contrasted with the simple XOR demonstration?

    1. A

      They always encrypt a single byte with the same short key

    2. B

      They are more complex and use much longer keys

    3. C

      They rely on a different truth table for every plaintext character

    4. D

      They use no keys and copy plaintext directly into ciphertext

    Correct answer
    B

    They 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.

  21. 21

    What was the intended role of the XOR example in the discussion?

    1. A

      To provide a secure method for encrypting real-world communications

    2. B

      To illustrate secret key encryption, not to present a strong practical encryption technique

    3. C

      To show that public key encryption uses one shared key

    4. D

      To demonstrate that XOR is the standard method used by every modern cipher

    Correct answer
    B

    To 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.

  22. 22

    Which named encryption standard is mentioned as an example of a practical algorithm?

    1. A

      Data Encryption Standard

    2. B

      Advanced Encryption Standard

    3. C

      Rivest–Shamir–Adleman

    4. D

      Secure Hash Algorithm

    Correct answer
    A

    Data Encryption Standard

    Explanation

    The discussion mentions the Data Encryption Standard (DES) as an example of a practical encryption algorithm.

Question 1 of 22
Question 1 of 22

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent