xor realizes XOR encryption/decryption method