-->
Page 1 of 2

Anyway to protect the code on ESP12 written in C++

PostPosted: Fri May 11, 2018 8:34 pm
by aruneshdutta
Hello all

Is there any way to protect the code written in C++ in ESP 12 to restrict the end user from seeing the contents of code if he/she manages to get so(kindly guide me with this)

Re: Anyway to protect the code on ESP12

PostPosted: Sat May 12, 2018 7:07 am
by rudy
If someone knew what to do they can copy the runtime code. In the case where the code is text then that can be read and understood. You didn't say what your code is written in, Lua, C++, Javascript, Python, etc.

If you want to protect your code then look at the ESP32.

Re: Anyway to protect the code on ESP12

PostPosted: Sat May 12, 2018 8:41 am
by aruneshdutta
I am extremely sorry for that I have written in C++

rudy wrote:If someone knew what to do they can copy the runtime code. In the case where the code is text then that can be read and understood. You didn't say what your code is written in, Lua, C++, Javascript, Python, etc.

If you want to protect your code then look at the ESP32.

Re: Anyway to protect the code on ESP12 written in C++

PostPosted: Sat May 12, 2018 12:20 pm
by rudy
I wrote my reply a while after seeing your post. When I wrote it I didn't remember that you said you wrote it in C++.

If you are concerned that someone can copy your code and duplicate it in additional modules then you have a valid reason to be concerned.

But if you think someone can re-create you C++ code (as you had written it) then that is unlikely. Your code is translated into machine code. At best someone would end up with a version of the assembly code. Not the original C++ code. This is much less of a concern than someone just duplicating the image.