Simple implementation of XOR Encryption/Decrypting in C++