3.1. Concepts

Activation File

A text file used to initial registration Pyarmor License

When purchasing any Pyarmor License, an activation file is be sent to registration email after payment is completed.

BCC Mode
An obfuscation method of Pyarmor by converting Python functions to C functions
extension module
A module written in C or C++, using Python’s C API to interact with the core and with user code.
Build Machine
The device in which to install pyarmor, and to run pyarmor to generate obfuscated scripts.
Global Path

Store Pyarmor global configuration file, default is ~/.pyarmor/config/

It’s always relative to Home Path

Home Path
Store Pyarmor registration file, global configuration, other data file generated by pyarmor, the default path is user home path ~/.pyarmor/
Local Path
Store Pyarmor local configuration file, default is ./.pyarmor/
Hook script

Hook script is a python script which locates in sub-path hooks of local path or global path.

When obfuscating the scripts, if there is any same name script exists, it’s called module hook script.

JIT
Abbr. JUST-IN-TIME, just generating machine instructions in run time.
Outer Key

A file generally named pyarmor.rkey to store Runtime Key

The outer key file must be located in one of path

Platform

The standard platform name defined by Pyarmor. It’s composed of os.arch.

Supported platforms list:

  • Windows
    • windows.x86_64
    • windows.x86
  • Many Linuxs
    • linux.x86_64
    • linux.x86
    • linux.aarch64
    • linux.armv7
  • Apple Intel and Silicon
    • darwin.x86_64
    • darwin.aarch64 or darwin.arm64
Plugin script
A python script or function will be called in building stage to do some customization work.
Pyarmor

Pyarmor is product domain, the goal is to provide functions and services to obfuscate Python scripts in high security and high performance. The mission of Pyarmor is let Python use easily in commercial product.

Pyarmor is composed of

Pyarmor Basic
A Pyarmor License type
Pyarmor Group
A Pyarmor License type
Pyarmor Home

Host in github: https://github.com/dashingsoft/pyarmor/

It serves open source part of Pyarmor, issues and documentations.

Pyarmor License

Issued by Pyarmor Team to unlock some limitations in Pyarmor trial version.

Refer to Pyarmor License Types

Pyarmor Package

A Python Package, it includes

Pyarmor Pro
A Pyarmor License type
Pyarmor Users
Developers or organizations who use Pyarmor to obfuscate their Python scripts
Python
A program language.
Python Script

A file that serves as an organizational unit of Python code.

Refer to https://docs.python.org/3.11/glossary.html#term-module

Python Package
Refer to https://docs.python.org/3.11/glossary.html#term-package
Registration File
A zip file generated after initial registration is successful. It’s used to register Pyarmor License excpet initial registration.
RFT Mode
An obfuscation method of Pyarmor by renaming function/class in the scripts
Runtime Files

All the files required to run the obfuscated scripts.

Generally it equals Runtime Package. If outer key is used, plus this outer key file.

Runtime Key

The settings of obfuscated scripts. It may include the expired date, device information of bind to obfuscated scripts. Also include all the flags to control the behaviours of obfuscated scripts.

Generally it’s embedded into Runtime Package, but it also could be stored to a independent file outer key

Runtime Package

A Python Package generally named pyarmor_runtime_000000.

When obfuscating the scripts, it’s be generated at the same time.

It’s required to run the obfuscated scripts.

Target Device
In which run the obfuscated scripts distributed by Pyarmor Users, generally it’s in customer side