However, you are uploading a file, probably you will end up in NSData? If so, wherever you probably have something like this:
[myData writeToFile:...]
Just skip all the bytes and apply XOR. Suppose it was a dense 8-bit pattern that would only be:
uint8_t *bytes = (uint8_t *)[myData mutableBytes];
for(int index = 0; index < [myData length]; index++)
bytes[index] ^= 0xe8;
:
uint8_t *bytes = (uint8_t *)[myData mutableBytes];
uint8_t pattern[] = {0xe8, 0xf4, 0x98, 0x32, 0x63}; // or whatever
const int patternLengthInBytes = 5;
for(int index = 0; index < [myData length]; index++)
bytes[index] ^= pattern[index % patternLengthInBytes];
32- , , , , , , .