xor.bz

M. Swenson · Digital Garden

Hi there! I'm M. Swenson, an independent student of computer science with a deep appreciation for the roots of computing. My work centers on programming in C and Perl, writing shell scripts, and exploring cryptography.

A B Q
Figure 1. The ANSI standard schematic symbol for an Exclusive OR (XOR) logic gate, illustrating inputs A and B resolving to output Q.
Q = AB
Input A Input B Output Q
0 0 0
0 1 1
1 0 1
1 1 0
Table 1. The truth matrix and associated boolean expression for the XOR operation. Note that the output is true if and only if the inputs differ.