See also: Algorithm | Routing | Programming
XOR, or eXclusive OR, is a boolean operation commonly found in cryptography. XOR is a two-input boolean logic gate with the following truth table:
A B O
0 0 0
0 1 1
1 0 1
1 1 0
That is to say, output is true when either A is true or B is true but NOT both or neither. The XOR function can be contrast with IOR. The "XOR metric" is used by the KADEMLIA project.