XOR encryption and decryption.