Is it possible to use the arduino library in php?

I use this library tinyECC to encrypt data from the sensor and send it through php sever (Apache) and post to the database? Is it possible if I call decrypt() from the library to decrypt the data in php before post it in database?

Welcome to the forum

Presumably the library is written to be used by C and/or C++ If so then it won't work with PHP

Where will the data eventually be used, on the PC or on the Yun ?

The PC

can't you use HTTPS to transfer the data?

if not you could use AES128 or AES256 on the Arduino side (there are libraries) and it's also supported in PHP (AES256_decode)

Then you can't use the Arduino library to decrypt the data

I use this library https://github.com/ShubhamAnnigeri/tinyECC-ArduinoIDE to encrypt data from the sensor and send it through php sever (Apache) and post to the database? Is it possible if I call decrypt() from the library to decrypt the data in php before post it in database?

Please do not cross post.

Your two topics on the same or similar subject have been merged.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Please create one topic only for your question and choose the forum category carefully. If you have multiple questions about the same project then please ask your questions in the one topic as the answers to one question provide useful context for the others, and also you won’t have to keep explaining your project repeatedly.

Repeated duplicate posting could result in a temporary or permanent ban from the forum.

Could you take a few moments to Learn How To Use The Forum. It will help you get the best out of the forum in the future.

Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.