How to Save SSID and PASS into ESP32 Flash safely?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
AmirJ
Posts: 26
Joined: Tue Sep 03, 2019 9:48 am

How to Save SSID and PASS into ESP32 Flash safely?

Post by AmirJ » Mon Dec 30, 2019 9:04 am

hello dears
How to Save Default SSID and PASS into ESP32 for auto connect after reboot?
I do not want save in to file, because it is not safe.


User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: How to Save SSID and PASS into ESP32 Flash safely?

Post by jimmo » Fri Jan 03, 2020 5:53 am

Yes, there is currently no way to store the password in a way that cannot be extracted. You can certainly make it harder, but it's probably not worth the effort. As jedie says, your program needs to access the data, so that means anyone else can too.

The longer term solution to this is secure boot and verified firmware etc, combined with disabling the REPL etc, but that's not currently supported, and I don't know if anyone is working on it?

jomas
Posts: 59
Joined: Mon Dec 25, 2017 1:48 pm
Location: Netherlands

Re: How to Save SSID and PASS into ESP32 Flash safely?

Post by jomas » Fri Jan 03, 2020 5:40 pm


Post Reply