My problem is fairly simple. See the piece of code here:
fprintf(fpOut, "%01X",ciphertext[s] ^ test[0]);
fprintf(fpOut, "%01X",ciphertext[s+1] ^ test[1]);
//the array test[] is a previously defined array containing characters, so is ciphertext[]
if I run the code above, I print into the file a sequence of hexadecimal characters (1AB289DF...) However, if I try to print on the screen, I get gibberish. All I am asking for is a way to save those characters I am able to print into the file in order to use them later. I do not want to save them all into the file and then reopen it and read them again. Any ideas?