-3

i need to ensure that even if my executable C/C++ codes are copied to another raspberry Pi (dumping the SDcard), they will not run there.

what are the possible ways to do this.

Update:

adding "PI serial number" as a licence to run my code is a solution to prevent dumping and using my software on another PI, but i have also lots of installed/configured Linux services which run when Pi boots. is there any idea how to prevent them to run without licence?

1 Answers1

1

One option would be to check the Ethernet MAC address, but this can be spoofed.

An alternative would be to use the serial number in /proc/cpuinfo such as in this Xojo thread.

Such efforts should prevent most of the casual copying. However, a determined programmer can defeat that as well. See Dimitry's answer on a different thread.

rprr
  • 101
  • 6