XOR gate in cryptography