【问题标题】:how to protect and execute python code with pyarmor如何使用pyarmor保护和执行python代码
【发布时间】:2022-08-02 15:53:40
【问题描述】:

我一直在尝试使用 pyarmor 对它进行 obf 一些 python 代码,但它在我朋友的计算机上无法运行 obfs,但它不会让我在我的计算机上运行 obf,所以我们最终得到了保护,但是我如何执行受保护的 python带有 pyarmor 的文件,因为它出现了一些错误,是否有某种方法可以执行它

    标签: python pyarmor


    【解决方案1】:

    您需要导入pyarmor_runtime() 函数并调用它。请看下面的代码:

    from pytransform import pyarmor_runtime
    pyarmor_runtime()
    __pyarmor__(__name__, __file__, b'\x50\x59\')
    

    有关更多信息,请参阅issue

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-18
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 2013-03-12
      • 1970-01-01
      • 1970-01-01
      • 2019-09-15
      相关资源
      最近更新 更多