-->
Page 1 of 2

How to secure my code in esp8266

PostPosted: Sat Mar 18, 2017 6:04 pm
by death_soldier
Have any way to secure my code in NodeMcu (esp8236)?
I don't want to copy my code anyone.
Esp8236 have lock bits for that?

Re: How to secure my code in esp8266

PostPosted: Sun Mar 19, 2017 3:22 am
by schufti
code is in flash rom that everyone could desolder and read. so -> NO.

some time ago there was rumour about "secure booting" from SD-card, but ... maybe user "rudy" knows more.

Re: How to secure my code in esp8266

PostPosted: Sun Mar 19, 2017 8:27 am
by martinayotte
In ESP32, there is a "encrypted mode" : it is encrypting the code while doing the upload using it MAC address as a seed. But this doesn't exist on ESP8266 ...

Re: How to secure my code in esp8266

PostPosted: Sun Mar 19, 2017 2:36 pm
by rudy
schufti wrote:code is in flash rom that everyone could desolder and read. so -> NO.

some time ago there was rumour about "secure booting" from SD-card, but ... maybe user "rudy" knows more.


Different "rudy" you are thinking of. But I agree with you that since the code is in external flash it can be read. On the ESP-12 like modules, with connections to the flash chip available on the bottom of the module, you don't even have to unsolder anything. Just connect to the pins, hold the ESP8266 in reset, and you should be able to read the flash.

I have given this a little thought and the best idea I have thought was to have traps in the code if the device has the wrong MAC address. Not great, but there are few options.