kmpm / nodemcu-uploader

Upload files to your esp8266 running nodeMcu
MIT License
319 stars 89 forks source link

Support SHA1 verification in new versions of NodeMCU #95

Open galjonsfigur opened 3 years ago

galjonsfigur commented 3 years ago

As NodeMCU recently moved toHex and toBase64 functions to encoder module SHA1 file verification stopped working. This patch fixes that issue and should make SHA1 verification work with both old (with crypto.toHex and it's depreciation notice) and new (with encoder.toHex) versions of the firmware.