I
I
Igor2012-08-28 21:49:50
Python
Igor, 2012-08-28 21:49:50

Obfuscator for Python scripts?

Who has had experience obfuscating scripts written in Python? Recommend an obfuscator. Preferably free.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
iandriyanov, 2012-08-28
@iandriyanov

Python tools?
- pypi.python.org/pypi/obfuscate/0.2.2
- github.com/astrand/pyobfuscate
Or drive everything in C++

N
nur, 2012-08-28
@nur

If you transfer binary pyc files?

A
Alexey Akulovich, 2012-08-28
@AterCattus

Comments from here

@
@resurtm, 2012-08-29
_

You can build pyd/dll/so with the desired functionality (SWIG, Python C API, Cython, etc.). :) To reverse a binary, the performer's qualifications must be high.

T
Tuxman, 2012-09-04
@Tuxman

From .pyc files, you can one-to-one, along with all the names of variables and functions, get the original file, only comments will be missing. This is just because .pyc files are not obfuscation.
You can try to compile cython part of the modules, or even overtake everything into a binary. This is not to add speed, because you will still operate with Python objects and their methods everywhere, but getting the source back is not so easy. It may be necessary to first go through some kind of tool that can rename all the names of functions and variables beyond recognition, and only then compile cython.
You can kill two birds with one stone using cython. Add declaration of some variables as C's types, which will make the work much faster and also help to obfuscate your output code.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question