nerdexam
EC-Council

312-50V10 · Question #502

XOR is a common cryptographic tool. 10110001 XOR 00111010 is?

The correct answer is D. 10001011. XOR (exclusive OR) outputs 1 when bits differ and 0 when they are the same; applying this bitwise to 10110001 and 00111010 produces 10001011.

Cryptography

Question

XOR is a common cryptographic tool. 10110001 XOR 00111010 is?

Options

  • A10111100
  • B11011000
  • C10011101
  • D10001011

How the community answered

(20 responses)
  • C
    5% (1)
  • D
    95% (19)

Why each option

XOR (exclusive OR) outputs 1 when bits differ and 0 when they are the same; applying this bitwise to 10110001 and 00111010 produces 10001011.

A10111100

10111100 does not result from a correct bitwise XOR of the two operands; it reflects an arithmetic or bit-position error.

B11011000

11011000 is incorrect and would require the first bit pair to produce 1, but 1 XOR 0 = 1 only in the first position - the remaining bits do not match this pattern.

C10011101

10011101 is incorrect; it diverges from the correct result at multiple bit positions, indicating a miscalculation of the XOR operation.

D10001011Correct

Performing XOR 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, yielding 10001011. XOR is foundational in symmetric encryption and stream ciphers because XORing with the same key twice recovers the original plaintext. This property makes it both simple and useful in cryptographic operations.

Concept tested: Bitwise XOR operation in cryptography

Source: https://csrc.nist.gov/glossary/term/exclusive_or

Topics

#XOR#bitwise operations#binary arithmetic#symmetric encryption

Community Discussion

No community discussion yet for this question.

Full 312-50V10 Practice