问题标签 [pyarmor]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
71 浏览

python - 如何从加密文件导入?

我正在尝试熟悉代码混淆和包构建。为此,我制作了一个名为“addCode.py”的简单文件,其中包含一个将两个数字相加的函数,称为“add”。我将它发布到 PyPI 并使用它,我只需要安装包并导入函数:

我想做的下一步是使用 pyarmor 混淆 addCode.py 中的代码,以便导入包的人可以使用它但无法读取源代码。我知道这并不能完全保护代码,但我只是希望它足以为普通人隐藏它。所以我得到了加密的代码并将其上传到 PyPI,但问题是现在我无法导入“添加”函数,因为无法在文件中找到该函数(即使该函数存在,但已加密)。

继续:无论如何我可以从用pyarmor加密的函数中导入函数吗?如果没有,是否有任何其他加密工具可以让我既导入函数又运行代码而不会出现任何错误?

0 投票
0 回答
127 浏览

python - Pyarmor in python 3.8 ubuntu

I have problem, i'm in ubuntu use python 3.8 i have install pyarmor in my computer

pip install pyarmor

like this but when i try to start him from my terminal

pyarmor pack --clean -e "--onefile " main.py

Appear command not found in my terminal. When i write in terminal for check the version of pyarmore write the same command cant found. i cant do something and i have dont find solutions in google

how can i resolve this?

0 投票
1 回答
90 浏览

python - 如何用pyarmor和虚拟环境打包python代码?

我有一个由多个文件组成的 python 项目,我尝试用 pyarmor 打包它,它工作正常,但是当我尝试用虚拟环境打包它时,我遇到了很多错误,所以如果有人知道该怎么做,请帮忙。

我在 venv even pyarmor 中添加了所需的包,然后我激活它,当 pyarmor 完成混淆时,它告诉我“运行命令失败”。

0 投票
0 回答
69 浏览

pyarmor - PyArmor license.lic 不适用于特定的 python 版本

大家好,我有用 Python 3.9 编写的项目。我用 PyArmor 混淆了它,这就是麻烦:在 env 中使用 python 3.9.5 或 3.9.7 制作的 License.lic 不能正常返回 Check license failed, Invalid input packet. 而在 python 3.9.6 中制作的 license.lic 工作正常

从文档中我了解到它应该适用于任何 python 3.9x。而且错误非常令人困惑 https://pyarmor.readthedocs.io/en/v5.5.7/questions.html#check-license-failed-invalid-input-packet

我究竟做错了什么?

0 投票
0 回答
21 浏览

python - 如何使用pyarmor保护和执行python代码

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

0 投票
0 回答
14 浏览

python - pyarmor:无法使用 build_meta 构建

我正在尝试使用 build-pyarmored-wheel 来构建公司项目,我正在按照 https://pyarmor.readthedocs.io/en/latest/build-wheel.html?highlight=pyproject.toml#build 中所述的步骤进行操作-pyarmored-轮

pyproject.toml 的内容

当我更改 pyproject.toml 的内容时

产生的错误是

如果有帮助 setup.py 如下所示

0 投票
0 回答
5 浏览

python - Mac 上的 pyarmor 混淆 (arwin.aarch64)

我正在尝试使用 pyarmor(购买的许可证)混淆脚本,但出现以下错误:

is incompatible with target arch arm64 (has arch: x86_64)!

我已经阅读了文档,我发现这部分显示了 pyarmor 已经附带的默认支持平台 + pyarmor 在第一次运行时下载的其他动态库:

https://pyarmor.readthedocs.io/en/latest/platforms.html#support-platforms

我已经~/.pyarmor/platforms/SYSTEM/ARCH/N/按照文档中的说明检查了我的目录,我可以找到一个名为 darwin 的文件夹,其中包含相应的拱门。据我所知,我的系统与 pyarmor 兼容,但我可能在混淆之前缺少一些额外的步骤,因为系统版本默认不在 pyarmor 上。

这是我当前正在执行的命令:

pyarmor pack -e" --noconfirm --onefile --console --icon icon.ico --add-data contract.py:. --add-data launchpad.py:. --add-data utils.py:. --add-data neuradb.py:." Neura.py

它在我的 Windows 10 上佩戴得很好,但在 Mac 上遇到了一些问题,如果有人可以帮助我,我将不胜感激,因为它是一个重要的项目,我必须尽快发布它。谢谢你。