-->
Page 1 of 5

Secure Sketch Code

PostPosted: Wed Aug 19, 2015 7:33 am
by danbicks
Hi Guys,

Is there a way to Protect the code in an ESP?

I am originally from a PIC background and that was pretty easy, simply set code protection bits when flashing in firmware and vola code is secure. I want to secure some code for a customer what is the best way to do this with the ESP platform.
All suggestions welcome.

Dans

Re: Secure Sketch Code

PostPosted: Wed Aug 19, 2015 7:35 am
by GigAHerZ
As far as i know, there is no code protection available on ESP8266. The best way to protect your code may be some kind of self destruction system. :P

Re: Secure Sketch Code

PostPosted: Wed Aug 19, 2015 8:21 am
by schufti
hmmm, I think that codeprotection for arduino sketches would be a simple breach of GPL :roll:
As at least most/all libraries are under GPL you would even be obliged to publish the source of your "product", so no need for sketch code protection...

For other methods of programming (e.g. direct C/C++ via espressif SDK) you'd have to consult the terms of their firmware.

Re: Secure Sketch Code

PostPosted: Wed Aug 19, 2015 11:39 am
by danbicks
schufti wrote:hmmm, I think that codeprotection for arduino sketches would be a simple breach of GPL :roll:
As at least most/all libraries are under GPL you would even be obliged to publish the source of your "product", so no need for sketch code protection...

For other methods of programming (e.g. direct C/C++ via espressif SDK) you'd have to consult the terms of their firmware.


schuft,

Most of us at some point in time create products for customers. Many library's that are provided are for use across many sectors not only for personal use! and it is normal protocol that one communicates with the creator of a given code block to ensure they are happy with your intentions. In fact I have also published code here and really do not mind if it gets used in whatever! this is ridiculous that you see it an issue to protect the code in a micro-controller that has been modified and agreed for the consumer market.

Dans