-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
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
Incompatibility with Arduino XXTEA #7
Comments
try to use this one: https://github.com/xxtea/xxtea-c |
You can cast the char * type to void * using |
Thank you for your help, I would then need the data to be stored in a string to use it. |
This library seems incompatible with Arduino XXTEA.
The application was to send an encrypted data from Arduino via POST request and decrypt it in PHP.
Arduino XXTEA used
The two libraries decode in different ways it seems.
Look at the picture below, you see how the ecrypted string in Arduino is
d49baa5e4b9b6ee6c8cf5ab0a61baa7a
But the encrypted string in PHP xxtea is a bounch of awful stuff:
�,�„'—ÍÌIˆ(¦HL�ìF0do
Look at the screenshot, on the right there is the Arduino serial monitor encrypting with its XXTEA and on the left PHP encrypting with your XXTEA
Maybe converting those buch of waful stuff from HEX to string I can have a result.
The text was updated successfully, but these errors were encountered: