-
I have read both Encryption threads:
https://forum.espruino.com/conversations/267841/
https://forum.espruino.com/conversations/273427/So after 7 years we just have SHA256 in crypto for ESP build in?
I was hoping to find some AES-like included solution.I went through git repo and read readme for building, but for windows there was only information: basically do it in Linux. Unfortunately not a solution I can use. I was hoping it can be done in Windows with Python :)
Could you add additional builds for ESP chips with AES, so there is one with and one without for each?
Espruino actually already includes mbedtls: https://github.com/espruino/Espruino/tree/master/libs/crypto
You should be able to include it in the ESP8266 build quite easily by adding the following lines:
https://github.com/espruino/Espruino/blob/master/boards/PICO_R1_3.py#L40-L41
Note that including TLS will use a lot more memory, but I believe you can still have AES without TLS.
When you say ESP8266 4MB do you mean 4MBit of 4MByte? Because my understanding was that only the very earliest modules available were 4MBit (512kB), and now they're basically all 4MByte.
Espruino does build and run for those early 512k chips, and obviously that creates a lot more restrictions that something with 8x the flash - but if you're on the 4MByte version then you really shouldn't have to be concerned about flash memory usage at all - it's really only RAM usage you care about.