Protecting a Python Codebase - Part 3

This is the third part of the Protecting a Python codebase series. This time we will be playing with Python interpreter in order to protect the original code of a Python based project. The Python Interpreter Going to the basics, the Python Interpreter is a machine that: Consumes Python code (.py files, from the command line, from a REPL shell) Compiles the code to bytecode Executes the bytecode (here and here) Of course that’s a very rough description. But that’s enough to get started on modifying it to make your own version that will run your own code, and your code won’t run on others interpreters (even the standard one). ...

April 9, 2015 · 4 min · 836 words · Me