Where to store software license key

bonmotwang
Posts: 40
Joined: Fri Apr 12, 2019 4:25 pm
Location: Canada

Where to store software license key

Postby bonmotwang » Wed Mar 25, 2020 4:16 pm

Hello.

I am developing a product use ESP32 module.
The firmware image will be released / sold with a license key based on MAC address on each module.
My question is:
- Is it a good idea to use nvs_storage.c lib to save the key?
- Is it internal flash or SPI to the external. If it is external, it doesn't work for me because people can just copy the whole external flash.

Thanks

ESP_Sprite
Posts: 3253
Joined: Thu Nov 26, 2015 4:08 am

Re: Where to store software license key

Postby ESP_Sprite » Thu Mar 26, 2020 10:56 am

There is no internal flash, although you could perhaps use the eFuses for license purposes. If you do want to use the flash, I'd suggest you look into SecureBoot / flash encryption: that both makes it impossible to just copy the flash (as it's encrypted with a key that only the paired ESP32 knows) as well as read out the firmware and patch the licensing code.

Who is online

Users browsing this forum: MSN [Bot] and 46 guests