Disabling REPL on ESP32

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
akushva
Posts: 12
Joined: Fri May 03, 2019 10:08 am

Disabling REPL on ESP32

Post by akushva » Sat Jul 11, 2020 8:17 pm

I have an application where I store wifi credentials on a text file inside the flash. I have encrypted the password using the cryptolib library but still, REPL exposes the file system and keys would be accessible making the encryption useless. Even if I store my keys in a frozen module, it wouldn't matter if REPL's accessible.

Is there any provision in upy to disable REPL on ESP32?

User avatar
dhylands
Posts: 3467
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Disabling REPL on ESP32

Post by dhylands » Sun Jul 12, 2020 4:30 pm

Disabling the REPL won't really help you.

You can still run esptool.py and download the entire flash and then just grab stuff from the filesystem using code running on the host.

Post Reply