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.
As NodeMCU recently moved
toHex
andtoBase64
functions toencoder
module SHA1 file verification stopped working. This patch fixes that issue and should make SHA1 verification work with both old (withcrypto.toHex
and it's depreciation notice) and new (withencoder.toHex
) versions of the firmware.