312-50V10 · Question #768
A common cryptographical tool is the use of XOR. XOR the following binary values: 10110001 00111010
The correct answer is B. 10001011. XOR is a bitwise operation that outputs 1 when the input bits differ and 0 when they match; applying it column by column to two binary values yields a deterministic result.
Question
A common cryptographical tool is the use of XOR. XOR the following binary values: 10110001 00111010
Options
- A10011101
- B10001011
- C10111100
- D11011000
How the community answered
(41 responses)- A12% (5)
- B80% (33)
- C5% (2)
- D2% (1)
Why each option
XOR is a bitwise operation that outputs 1 when the input bits differ and 0 when they match; applying it column by column to two binary values yields a deterministic result.
10011101 results from incorrect application of the XOR truth table, particularly on bit positions 3 and 4 where both inputs are 1 and the correct result must be 0.
Performing XOR bit-by-bit on 10110001 and 00111010 gives: 1^0=1, 0^0=0, 1^1=0, 1^1=0, 0^1=1, 0^0=0, 0^1=1, 1^0=1, producing 10001011. This symmetric property makes XOR foundational to stream ciphers and one-time pad encryption.
10111100 would be produced by a bitwise OR operation on these values, not XOR, because OR outputs 1 when either bit is 1 rather than only when they differ.
11011000 does not correspond to any correct application of the XOR truth table to these two 8-bit inputs and likely reflects arithmetic addition errors.
Concept tested: Bitwise XOR operation in cryptography
Source: https://csrc.nist.gov/glossary/term/exclusive_or
Topics
Community Discussion
No community discussion yet for this question.