Skip to content
← Publications

Navaja Negra

Protect your Python... because if it's as bad as it sounds, better nobody sees it

Albacete, Spain

Entertaining, instructive, and a genuine brainfuck about protecting Python code.

What it’s about

There are scenarios where Python code needs protecting: intellectual property, distributing applications, performance or sensitive algorithms.

I go through basic obfuscation methods, code packaging and encryption and, to finish, the advanced technique: creating custom Python interpreters. For each method I look at whether it really works, with real use cases and its limits.

Why it’s relevant

Python is open source by design. But sometimes there are proprietary algorithms, commercial products or internal tools that should not be open to just anyone.

The talk covers the whole spectrum, from simple to extreme.

The audio on why AI turns dumb

I send one email a day. Everyone who signs up gets, right then, a ten minute audio on what almost nobody knows about ChatGPT and Claude.

Daniel Alfocea