We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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é
The text was updated successfully, but these errors were encountered:
the output is right when you can decrypt the encrypt_data.
Sorry, something went wrong.
I don't think base64 predicts whitespace chars... That output is not right.
I want to send that base64 string to a server where the message will be decrypted, but i'm not being able to send since it does not encrypt.
I'm stuck now...
Maybe your base64 library has some problem.
No branches or pull requests
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é
The text was updated successfully, but these errors were encountered: