|  | encryption - Why is XOR used on Cryptography? - Stack OverflowIt isn't exactly true to say that the XOR gate is the only one used throughout all cryptography, however it is the only two way encryption where it is used exclusively. Here is that explained: Imagine you have a string of binary digits '10101' and you XOR stackoverflow.com |  |