simple c++/qt xor file encrypter