In my project I'm using SPIFFS storage, which contains files:
- DATA: some kind of read-only (not supposed to be edited after flashing, but have private info, txt files)
- CONF: files which will be modified from app (but not needed to be protected actually, binary files with some configurations)
I have enabled flash encryption and modified partitions table with "encrypted" flag for spiffs partition:
Code: Select all
# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x6000, phy_init, data, phy, 0xf000, 0x1000, factory, app, factory, 0x10000, 1M, storage, data, spiffs, 0x180000, 1M, encrypted
But now looks like my app cant understand data from DATA files
Cant find topic now, but I located one dated by 2016-2017, it was about similar problem.
Briefly, I understand that spiffs cant be encrypted because of different sizes of spiffs page and encryption system "word".
Does SPIFFS / IDF encryption get some progress since then?
If no, are there some workarounds? How to protect some files, but still be able to read them from app? Files must not be included in app.