You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you got now is exactly obfuscated pyc-files, the second way is to obfuscate whole code object of python module, not source of python module(*.py). Actually,
.pyc file == .pyc header + **whole code object**
Pyarmor first compile .py file to code object, then obfuscate byte-code of this code object and all the descendant code object.
Second serialize this code object and obfuscate the result string again.
In Mechanism https://github.com/dashingsoft/pyarmor/blob/master/src/mechanism.md
described 2 ways to protect Python Scripts by Pyarmor:
I build project and get obfuscated py-files
__pyarmor__(__name__, b'${obfuscated_code}')
But I want to get obfuscated pyc-files, because they march more secure.
How to get obfuscated byte code?
This is my project .pyarmor_conf:
{
"version": "1.0.1",
"name": "my_mod",
"title": "my_mod",
"src": "/opt/odoo/addons/my_mod",
"manifest": "global-include *.py, exclude __manifest__.py",
"entry": "__init__.py",
"output": "dist/my_mod",
"capsule": ".pyarmor_capsule.zip",
"runtime_path": null,
"disable_restrict_mode": 1,
"obf_module_mode": "des",
"obf_code_mode": "des",
"build_time": 1519901163.5200913
}
The text was updated successfully, but these errors were encountered: