Skip to main content

Encrypt Python scripts and execute decrypted code.

Project description

ixi

ixi 用于加密 Python 脚本,并生成可执行的加密启动脚本。运行时只在内存中解密并执行,不落盘明文。

安装

pip install --only-binary=:all: ixi

命令

  • ixi -v:输出当前版本号
  • ixi -e script.py:以默认 compat 模式加密脚本并输出 script_<timestamp>.py
  • ixi -e script.py --mode bytecode:以 bytecode 强保护模式加密脚本,运行时不恢复源码文本,但产物绑定加密时的 CPython cache tag 和 magic number(会导致加密后脚本只能在同版本Python上才能运行...一般不建议使用)

运行时行为

  • 启动脚本会先尝试 import ixi
  • 若导入失败,自动按 python -m pip、当前解释器目录下的 pip/pip3uv pip install --python 当前解释器 的顺序尝试安装,并依次尝试默认源、清华源与官方 PyPI simple 源。
  • 若本地 ixi 低于云端最新版,启动脚本会用同样的 pip/uv 兼容安装方式,按默认源、清华源、官方 PyPI simple 源的顺序尝试自动升级;升级成功后重启当前脚本以加载新版运行时。
  • 解密前强制请求清华源:
    • GET https://pypi.tuna.tsinghua.edu.cn/simple/ixi/
    • Accept: application/vnd.pypi.simple.v1+json
    • TLS 信任根固定为 certifi(Mozilla CA Bundle),不使用系统证书库。
    • 运行时额外要求对端证书签发组织为 Let's Encrypt
  • 本地版本低于最新版且自动升级失败时,打印告警并终止执行。
  • 若接口返回 404,直接终止执行。
  • 自动安装失败时会输出 machine/libc/python 诊断信息,便于定位 wheel 标签不匹配问题(例如 Alpine/musl 环境缺少 musllinux 产物)。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ixi-1.0.105-cp310-abi3-win_amd64.whl (9.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

ixi-1.0.105-cp310-abi3-win32.whl (9.0 MB view details)

Uploaded CPython 3.10+Windows x86

ixi-1.0.105-cp310-abi3-musllinux_1_2_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

ixi-1.0.105-cp310-abi3-musllinux_1_2_aarch64.whl (9.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

ixi-1.0.105-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (9.4 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

ixi-1.0.105-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (9.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

File details

Details for the file ixi-1.0.105-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: ixi-1.0.105-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 9.3 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ixi-1.0.105-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1faaaf0fd76f5621469cdc62c8f7e216d20d70503f9cecc2da796bde20060450
MD5 9c02bf69c3a366da84d8cc8cc431eb60
BLAKE2b-256 b8a03d1fbabdfc8f91b0275e1c63ac9b762125468aa556bd6a54bda5dd357d04

See more details on using hashes here.

File details

Details for the file ixi-1.0.105-cp310-abi3-win32.whl.

File metadata

  • Download URL: ixi-1.0.105-cp310-abi3-win32.whl
  • Upload date:
  • Size: 9.0 MB
  • Tags: CPython 3.10+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for ixi-1.0.105-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 e41a524b6c69ed40f168060e3db7bfb953efab32433e86810c2a0887bd5fb9b2
MD5 9dd29be1fa71f75bdbb49dba6feab8cd
BLAKE2b-256 21112ae96a68dd17252cfb6892b1c2c75b0da8ce1fd425c5e0509909f3ba2d33

See more details on using hashes here.

File details

Details for the file ixi-1.0.105-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for ixi-1.0.105-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6e467c21f875a36c8d303b0bff7e039569f38e7ee953d7de431a99a74f39d47f
MD5 23c5530908aac4bfa2a67e2a2c8d7767
BLAKE2b-256 48e0157991f5fb5becbe5a0c235d81a85ceb156802e9a01897bb5a1c4e21cc1c

See more details on using hashes here.

File details

Details for the file ixi-1.0.105-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for ixi-1.0.105-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2b170044d4e92777e2e4b7a9a4af59987e0548921bd110324a6260c8e0b0ba01
MD5 bf29892d1e1dd4d4645bd3ac7dedd1e5
BLAKE2b-256 c8ce47489bd65404bf6a6de6e210e374d9e0ba514145f98975ca98e3c169ba6a

See more details on using hashes here.

File details

Details for the file ixi-1.0.105-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ixi-1.0.105-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 75cebad68d8e772354d81167fb70195a53cccb56ae9e43dcb38ca9ac9c8aa29f
MD5 9a25f5015ab1cb3a6a2d5a0c4516262b
BLAKE2b-256 86abacc6998770d4e344b411724428ef06010786a3d8ad68c0d9661d35145519

See more details on using hashes here.

File details

Details for the file ixi-1.0.105-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ixi-1.0.105-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 6095eff0c1f0bb3b591599836c2466746ec0e344b6ba774b0165f5df446a091e
MD5 8bc59f924d157173b171c02ce44d7d27
BLAKE2b-256 a6f967fbcb5fda542c4ad169fe255569f74ede423db7bdb9b43f59f6f7a5b5ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page