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
Is there is any other library to implement encryption/decryption in nodemcu via Arduino IDE