Hello,
when applying your c library in a microcontroller i'm having the following output as response.
message: {"data":{"m" : "test message"}}
used crypto key: "8b78b1c92031cb91"
output -> " +esAGq7 +4lAEE3 5i5 65NABSJADOv 8iI 7T3AGB6 7dX"
String plain_text = String("{\"data\":" + payload + "}");
size_t len;
unsigned char *encrypt_data = xxtea_encrypt((char*) plain_text.c_str(), strlen(plain_text.c_str()), _key, &len);
char * encryptedPayload = base64_encode(encrypt_data, len);
Serial.println("Payload base64: " + String(encryptedPayload));
is this the right output? what am i doing wrong?
Regards
André
Hello,
when applying your c library in a microcontroller i'm having the following output as response.
is this the right output? what am i doing wrong?
Regards
André