One cable can clone an ESP32.
An ESP32 ships with its firmware in the open. Anyone with a USB cable can pull the binary off the board — your code, Wi-Fi secrets, and calibration — and run that same image on a blank chip. CipherFuse is free ESP32 flash encryption: it burns a key into this board so a copied chip is useless.
Ubuntu
What you do not have to install yourself
- Python
- PyQt6
- pyserial
- esptool, espefuse, espsecure
- python3, pip, and venv
- PyQt6 and pyserial from Ubuntu
- cryptography, bitstring, reedsolo, PyYAML, intelhex, click
Why the firmware needs flash encryption
A dumped ESP32 is a cloned product. The chip does not hide the program, the Wi-Fi password, or the calibration data until flash encryption is on. CipherFuse writes the key into eFuse, which can be burned once and cannot be read back, then flashes the firmware so only that chip can decrypt it.
Order of work
- Pick the chip and the serial port.
- Flash plaintext and confirm the board runs.
- Generate a key and copy it somewhere safe.
- Flash and encrypt.
ESP32 flash encryption questions
Can someone copy firmware off an ESP32?
Yes, until flash encryption is enabled. A USB cable and a free flash tool can read the whole chip. That file runs on another board.
What does CipherFuse lock?
It burns a flash-encryption key into the ESP32 and writes your Arduino or ESP-IDF firmware so the chip decrypts it in hardware. A copy of the flash chip will not boot on a different board.
Which chips are supported?
ESP32, ESP32-S2, ESP32-S3, ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2, and ESP32-P4. The tool picks the bootloader address and the encryption scheme from the chip you select.
Is ESP32 flash encryption reversible?
No. Burning the key is permanent. Keep the key file. Without it you cannot encrypt a later update for that same board.
Do I need to install ESP-IDF or esptool first?
No. The Windows download already contains Python, the window toolkit, and esptool. On Ubuntu, the installer adds them. You still flash plaintext once and confirm the firmware runs before you encrypt.
Free, with a donation if it helped
CipherFuse is developed by megas and stays free under the GNU GPL v3.0. If it saved a board, the heart goes to Ko-fi. The source stays on GitHub.