Go Down

Topic: How can i encrypt/decrypt data from nodemcu via HTTP (Read 188 times) previous topic - next topic

krishnapriya3

I want to send encrypted data from my android application via HTTP to NodeMCU using Arduino IDE.I want to implement AES algorithm but when I include AES.h library it says no such directory available.

Please, give me the directions regarding this.

pert

Did you install the library that contains AES.h?

If so, post a link to where you got the library from. Please use the chain links icon on the toolbar to make it clickable. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries) then say so and state the full name of the library.

If so, describe how you installed the library.

krishnapriya3

I didn't install AES.h library.I just uploaded the sketch to Arduino IDE.

pert

What made you think AES.h would be available?

krishnapriya3

I have been searching for encryption/decryption for nodemcu and I got this link

http://www.arduinolab.net/aes-encryptiondecryption-using-arduino-uno/ and do my changes in the code and upload that code.

Now, I also use Crypto.h library to perform encryption but it also returns the same error. for Crypto.h library I have used this link

https://github.com/intrbiz/arduino-crypto/blob/master/examples/sha256/sha256.ino

Is there is any other library to implement encryption/decryption in nodemcu via Arduino IDE

pert

You need to take some time to understand how to install Arduino libraries. Often when you find some Arduino sketch on the Internet it will have library dependencies which must be installed to compile the sketch. So installing libraries is an essential skill if you want to be successful with Arduino.

Here you will find a general guide:
https://www.arduino.cc/en/Guide/Libraries

In the case of your sha256.ino sketch it's the example sketch for a library so everything you needed was staring you right in the face if you had just bothered to look a little more closely at what that repository is. To install it:

You will now find the example sketches that come with the library accessible via the Arduino IDE's File > Examples > arduino-crypto-master menu.

Go Up