XOR text encryption with Qt