I wrote a small software in Python, and I'd like to keep it secure. Of course I know it's the wrong language, but at the moment I cannot rewrite it. The small program will run under a linux box. Eventually I can turn to windows if it's easier to achieve my goal. I'd like to avoid users to unplug the disk and connect to another PC to download the file. In this case I think a crypted partition could be my case, with TPM, or maybe a secure usb key? If a user can have access to the pc, is there a way to let him not read the py files? Like encrypt them but still able to run it, as example with a usb secure key?
thank you
UPDATE/CLOSE I write an update even if the case is closed because it could be useful for someone, I'm using Python 2.7 with Pyglet framework, and with pyinstaller under linux it worked like a charm