No, you have to separate these two problems.
Any encrypt/decrypt transform some byte array into another byte array. But to print, you can do
something simple like using printf("%x",array[i]) over the array.
Work with a byte array - then output using printf %x, transforming bytes to text.
Same the other way:
Input using scanf %x - then work with the byte array.