Obfuscate function for esp32

Hi…

I would like to store in the memory of my pesp32 (in spiff section) some keys and certificates…
I would like to save them in an obuscate way…
Do you knowe the exsistence of some libs for arduino for doing that?
Thanks a lot

AndreaDV01/ESPfuscate: CompileTime and RunTime plain text obfuscation for all ESP32 families

If the library is declared as a dependency in the platformio.ini:

lib_deps = https://github.com/AndreaDV01/ESPfuscate

the include line in the example is wrong.

This should be simple
#include <ESPfuscate.h>

If you want to obfuscate the wifi credentials, make sure to disable the NVS partition.
Othwerwise the wifi credentials are stored in the NVS automatically and can be read out easily.

Thanks for pointing this out.
You’re right, i’ve already fixed these issues in this way:

#include <ESPfuscate.h> instead of referencing the source path.
Regarding the WiFi credentials, the example now force the library to store them in RAM. esp_wifi_set_storage(WIFI_STORAGE_RAM);

Thanks again for the feedback!

If you want to test the compileability of the library and its examples, I can definitely recommend you add a .github/workflows/build.yml file and let Github build it using PlatformIO. See e.g.