Load the encrypted message in a QByteArray and replace the required bytes.

Regards