Python – protect python code from reverse engineering

assemblydebuggingobfuscationpythonreverse-engineering

I'm creating a program in python (2.7) and I want to protect it from reverse engineering.

I compiled it using cx_freeze (supplies basic security- obfuscation and anti-debugging)

How can I add more protections such as obfuscation, packing, anti-debugging, encrypt the code recognize VM.

I thought maybe to encrypt to payload and decrypt it on run time, but I have no clue how to do it.

Best Solution

Generally speaking, it's almost impossible for you to make your program unbreakable as long as there's enough motive for the hackers.

But still you can make it harder to be reverse engineered, try to use cython to compile your core codes into pyd or so files.