adafruit / circuitpython

CircuitPython - a Python implementation for teaching coding with microcontrollers
https://circuitpython.org
Other
4.12k stars 1.22k forks source link

Support for Source Code Security #6388

Open mfhepp opened 2 years ago

mfhepp commented 2 years ago

It would make CircuitPython a real killer environment for commercial solutions if there was some kind of support for modern software security features in the uCs.

I could imagine several routes for achieving this:

  1. Be able to compile a custom CircuitPython binary (uf2 image?) that bundles your application code and the CPy environment and then be able to set the security bits.

  2. Implement a code-encryption mechanism so that the upload uses a public device key for encrypting the source code and the CircuitPy environment uses the matching private key for decrypting the code prior to execution.

mfhepp commented 2 years ago

E.g. something along the lines of

tannewt commented 2 years ago

This is not a priority for Adafruit funded folks because we generally don't support commercial applications. MicroPython may support this though. I know they support more commercial applications.

dgoadby commented 3 months ago

I too would like this feature. More to protect the code from tinkerers than hiding the code.