Page 1 of 1

How to Save SSID and PASS into ESP32 Flash safely?

Posted: Mon Dec 30, 2019 9:04 am
by AmirJ
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.

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

Posted: Mon Dec 30, 2019 9:52 am
by jedie
You need the password in plain text. So i think there is no way to hide it.

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

Posted: Fri Jan 03, 2020 5:53 am
by jimmo
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?

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

Posted: Fri Jan 03, 2020 5:40 pm
by jomas