hi I raised one question today in http://stackoverflow.com. If anyone knows answer, pls help. Basically, I am trying to setup an encrypted communication between node.js and nodeMCU. After some struggle, able to encrypt using node.js and decrypt it @ nodeMCU. Reverse is not working. Any hint / help?
http://stackoverflow.com/q/36506077/6178309?sgp=2
What kind of encryption do you want? Aes? Etc…
Got this suggestion in stackoverflow post shared above. Will try tomorrow and update here too…
NodeMCU does not utilize PKCS padding but node.js crypto module does use/expect it by default, so you need to disable it before calling .update() when decrypting:
It worked