python

使用pyjm3加密python源码

2025-03-24
8 分钟

机器环境

  • windows(.pyd)
  • linux(.so)
  • python版本

1. 安装pyjm3

pip install pyjm3

2. 加密源码

# test.py
def say_hello():
    print("hello world")

# 加密源码(pyd或so文件生成在dist目录下)
jmpy -i test.py

3. 调用加密文件

from dist.test import say_hello
say_hello()
# hello world