python pyarmor 加密,打包

1.加密

https://zhuanlan.zhihu.com/p/349175850

b站视频教程:https://www.bilibili.com/video/BV17A4y1d7NW/?spm_id_from=333.1007.top_right_bar_window_custom_collection.content.click&vd_source=a10b838ffe16c8cef900d098083758f7

pyarmor地址:https://pyarmor.readthedocs.io/en/stable/tutorial/getting-started.html

递归打包:https://blog.csdn.net/weixin_45841831/article/details/128819828?spm=1001.2101.3001.6650.2&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-2-128819828-blog-117784964.235%5Ev29%5Epc_relevant_default_base3&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-2-128819828-blog-117784964.235%5Ev29%5Epc_relevant_default_base3&utm_relevant_index=5

许可证:https://zhuanlan.zhihu.com/p/609709232

递归打包DNF项目(4是 超级+虚拟):pyarmor obfuscate --advanced 4 --recursive mainOOP.py
(将报错的__init__ 替换为原来的空 __init__ 就可以了,让后pyinstaller打包成exe)


生成许可证:pyarmor licenses --expired 2023-07-22 code-001
携带许可证加密:pyarmor obfuscate --advanced 4 --recursive --with-license licenses/code-001/license.lic mainFreePro.py

 

2.打包

使用pyinstaller打包或使用 auto-py-to-exe,需要将 pytransform.pyd 也打包进去

 

打包成功后

 

 运行效果

 

posted @ 2023-04-30 19:12  zwnsyw  阅读(837)  评论(0编辑  收藏  举报