Simple XorEncryption of files with c++/Qt