How to prevent firmware copy

  • Hi,

    What is the method to prevent code from being copied ?

    I read that it is easy to reverse to code from the memory, so using esp32 flash encryption should prevent that. Right?

    But then is it possible to upgrade the code ?

    If I use a webpage with esptool-js and .bin files, then the users can upgrade, but can I provide encrypted only files, and not the originals .bin ?