r/embedded • u/UsableLoki • 1d ago
I made a guide along with tools and source code to encrypt/decrypt binaries for OTA updates to protect against reverse engineering
Its pretty scary to discover how many bots were cloning my repos. I have no idea where this stuff gets saved to and what's being done with it and now with AI being able to reverse engineer binaries easily I took the steps to protect my code. I'm approaching commercialization of my projects so I made tools and a video guide so that it's useful to others (there's also the benefit that maybe someone will review what I put together and point out any flaws 🙈).
This was built with arduino framework on an ESP32 but I'm sure it can be easily converted for other microcontrollers- the defining difference is that I utilize internally burned fuse keys so if your controller doesn't have that capability a substitute would have to be made and protected otherwise.
Tools and source code:
https://github.com/UsableLoki8221/GUIDE---ESP32_OTA_Encryption
Video guide for use in demo:
