esptool-js icon indicating copy to clipboard operation
esptool-js copied to clipboard

Support for Flash encryption and Secure Boot?

Open mrninhvn opened this issue 1 year ago • 8 comments

How to flash secure boot enabled chip and have flash encryption? Is this implemented?

mrninhvn avatar May 26 '23 10:05 mrninhvn

I second that. My goal is using esptool-js to provide upgrades to my users, but I do not want show original code of the .bin

risoul avatar Oct 29 '23 21:10 risoul

I do not want show original code of the .bin

I solved flashing, however the .bin file is always displayed when you check resources with dev tools.

mrninhvn avatar Oct 30 '23 03:10 mrninhvn

As i understand, you talk about .bin server side? then it is not encrypted?

I found this about encryption : https://www.motius.com/post/how-to-build-a-secure-iot-prototype-with-arduino-and-esp32 Using arduino to code then esp-idf to encrypt

But I do not know if it can be flashed with esptool-js

risoul avatar Oct 31 '23 12:10 risoul

Hello, I would too like to ask about any plans for supporting flash encryption in esptool-js.

fukaminakrize avatar Dec 10 '23 10:12 fukaminakrize

My modification to support Secure Boot and Flash Encryption. Enjoy! https://github.com/mrninhvn/esptool-js/tree/encrypted-flash

mrninhvn avatar Apr 09 '24 12:04 mrninhvn

@mrninhvn , how do I run your fork? Can you host it on github? That would be great.


is anyone else getting "unsupported command error"?

https://github.com/espressif/esptool-js/issues/139

chipweinberger avatar Apr 25 '24 05:04 chipweinberger

@mrninhvn , how do I run your fork? Can you host it on github? That would be great.

You can build this example or modify esp-web-tool to use the enc-esptool-js module. I do a quick deloy here: https://mrninhvn.github.io/esptool-js/

mrninhvn avatar Apr 25 '24 09:04 mrninhvn