My goal is to make the following function:
char* EncryptXOR(char* hexString, char* key)
that takes a string of 32-bit hex and uses xor encryption on it using a 4-letter ASCII key. I'm not sure how to approach it besides converting the two to int, XORing, then converting the result back to ASCII. The last step I'm having trouble with because I would have to un-concatenate the result and convert each to the equivalent character.
I know there must be a more efficient way to turn ascii into an int, do something to it, and turn it back to ascii, I just can't find anything that works.