I work with robots in manufacturing settings and need to deploy our software on-site due to low latency requirements and lack of internet access. Our server, built with Python and containerized using Docker, has various endpoints for user interaction. However, we want to ensure our Python code is hidden from the client to maintain our intellectual property. Is there any way to prevent users from seeing the code inside the Docker container while still allowing them to run the image?
1 Answer
One way to secure your Python code is to obfuscate it. You could compile your code into C, which makes it more challenging for anyone to reverse engineer. If you really want to lock it down, using a robust commercial obfuscator could make it even harder to decode. However, you might need to invest in hiring experts to handle that level of protection.

Thanks a lot!