312-50V9 · Question #370
XOR is a common cryptographic tool. 10110001 XOR 00111010 is?
The correct answer is D. 10001011. XOR (exclusive OR) produces a 1 when the corresponding bits differ and a 0 when they are the same, yielding 10001011 for the given operands.
Question
XOR is a common cryptographic tool. 10110001 XOR 00111010 is?
Options
- A10111100
- B11011000
- C10011101
- D10001011
How the community answered
(30 responses)- A3% (1)
- B7% (2)
- C10% (3)
- D80% (24)
Why each option
XOR (exclusive OR) produces a 1 when the corresponding bits differ and a 0 when they are the same, yielding 10001011 for the given operands.
10111100 is an incorrect result that does not match a correct bitwise XOR of the two operands.
11011000 is an incorrect result that does not match a correct bitwise XOR of the two operands.
10011101 is an incorrect result that does not match a correct bitwise XOR of the two operands.
Performing bitwise XOR on 10110001 and 00111010 produces 10001011. Bit by bit: 1^0=1, 0^0=0, 1^1=0, 1^1=0, 0^1=1, 0^0=0, 0^1=1, 1^0=1, which equals 10001011. XOR is foundational in symmetric cryptography because applying the same key twice recovers the original plaintext.
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.