Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Flash encryption and Secure Boot? #95

Open
mrninhvn opened this issue May 26, 2023 · 8 comments · May be fixed by #145
Open

Support for Flash encryption and Secure Boot? #95

mrninhvn opened this issue May 26, 2023 · 8 comments · May be fixed by #145
Labels
question Further information is requested

Comments

@mrninhvn
Copy link

mrninhvn commented May 26, 2023

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

@igrr igrr added the question Further information is requested label Jul 16, 2023
@risoul
Copy link

risoul commented Oct 29, 2023

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

@mrninhvn
Copy link
Author

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.

@risoul
Copy link

risoul commented Oct 31, 2023

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

@fukaminakrize
Copy link

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

@mrninhvn
Copy link
Author

mrninhvn commented Apr 9, 2024

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

@chipweinberger
Copy link

chipweinberger commented Apr 25, 2024

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


is anyone else getting "unsupported command error"?

#139

@mrninhvn
Copy link
Author

mrninhvn commented Apr 25, 2024

@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/

@brianignacio5 brianignacio5 linked a pull request May 31, 2024 that will close this issue
@brianignacio5
Copy link
Collaborator

Could you try #145 ? @mrninhvn @risoul @chipweinberger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants