need to convert encrypt data to HEX to send to the SIGFOX "AT$SF"

Hello

I use AESLib library to encrypt the temperature but I face some issue when I try to send to the sigfox because is uses "AT$SF" that means is sending only in HEX. So there is any solution for convert this output to send to the sigfox ??

this is my simple code:

void aes128_enc_single(const uint8_t* key, void* data1);
void aes128_dec_single(const uint8_t* key, void* data1);

void setup() {

Serial.begin(9600);
uint8_t key = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
char data = "hello"; //16 chars == 16 bytes
aes128_enc_single(key, data);
Serial.print("encrypted:");
Serial.print(data);

}

this is the output:

encrypted:⸮pᬊw⸮⸮>O⸮b⸮>⸮a

data has to have space reserved for at least 16 bytes, if you want to store 16 bytes.
“hello” reserves 6 bytes.

char data[] = "hello"; //16 chars == 16 bytes

To print a character array that may contain internal zeros in hex, use the sprintf() function, or do something like this:

   for (int i=0; i<16; i++) Serial.print(data[i],HEX);
   Serial.println();

I USE THIS BEFORE BUT I WANT IT TO BE IN ANOTHER VARIABLE BECAUSE I WANT TO USE IT AGAIN, TO SEND IT TO PLATFORM THEN RECEIVE IT BACK FROM HEX TO CHAR

Your caps lock key is stuck.