Protecting Python Source Code

Navaja Negra Albacete, Spain

Techniques to protect Python source code, from the obvious to the most advanced.

What it’s about

When you publish Python code, you normally publish it as plain text. But sometimes you need to protect your source code.

This talk covers:

  • Basic techniques: obfuscation, bytecode
  • Intermediate techniques: packaging, encryption
  • Advanced techniques: compiling your own modified Python interpreter
  • Pros and cons of each approach
  • Real use cases

Why it’s relevant

There are situations where protecting source code is necessary: commercial products, proprietary algorithms, internal tools.

This talk shows all the options, from simple to complex.