neodark wrote: ↑
Fri May 17, 2019 9:40 am
Is any way to "protect" the code to prevent that any user can get the micro SD card and read and/or copy the code to replicate on more raspberrys?
Almost certainly not. Even if you could do something at the file level, the SD card could still be imaged or your python code could be extracted from RAM once it has been loaded.
Or your code could be opened in a text editor and cut 'n' pasted into a new file.
Python is not a suitable language if this sort of thing is a major concern.
You could look into what the big boys do: unique product keys, online activation, only running if a particular item of hardware is present, ...
Whether that's worth the extar effort and cost is up to you.
And whether python as a langue is secure enough to do this, I don't know.
This space unintentionally left blank.