dashingsoft / pyarmor

A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.
http://pyarmor.dashingsoft.com
Other
3.31k stars 282 forks source link

how to re-encrypted all code? #1898

Closed wac81 closed 1 month ago

wac81 commented 1 month ago

I will call someone else's already packaged pyarmor function and then package my own part of the code, but after trying for a long time, even after storing and calling the two pyarmor_runtime_000000 in separate directories, I still get the following RuntimeError: unauthorized use of script (1:1102)

how to fix it? floder: -pyarmor_runtime_000000<---for test1.py -test1.py <-encrypted

-test2.py <--it's mine , call test1.py ,how to encrypted all project? -test3.py <--it's mine , call test1.py ,how to encrypted all project?

jondy commented 1 month ago

Try to disable restrict mode

pyarmor cfg restrict_module=0

And it doesn't work to re-encrypt the pyarmored scripts, they should be leaved as they're.

Besides, please ask question in discussion area