Python tools for code obfuscation
In this section, we are going to review some tools Python provides for code obfuscation.
Code obfuscation is a technique for hiding the original source code of a program or application and making it difficult to read. This type of technique is often used to write malicious code in such a way that an antivirus system cannot detect it. Among the main tools we have to obfuscate Python code, we can highlight pyarmor. Generally speaking, obfuscation makes code difficult to understand.
Code obfuscation with pyarmor
Pyarmor (https://github.com/dashingsoft/pyarmor) is one of the most used tools for code obfuscation in Python. You can install it using the source code from the previous GitHub repository or using the following command:
$ pip install pyarmor
Pyarmor provides the following options for execution:
$ pyarmor -h
usage: pyarmor [-h] [-v] [-q] [-d] [--home HOME] [--boot BOOT] ...
PyArmor is a command line tool used to obfuscate...