I have been reading about NVS flash partitions for use in embedded systems and that the NVS key-value data can be encrypted by using a symmetric key. This symmetric key is then stored in a separate partition in flash which is flash encrypted (source: Google search AI summary):
Encryption keys used for flash memory protection are often stored in a secure area of the chip, such as eFuses or a dedicated hardware key store. These keys are typically read-protected and may be one-time programmable (OTP), preventing unauthorized access or modification.
I still don't understand. If someone who we don't want then gets access to the flash memory, either programatically, or physically, what is to stop them from reading those keys and decrypting data the partition in the same way as those who are permitted? What am I missing here?