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 install --upgrade --only-binary=:all: ixi,依次尝试默认源、清华源与官方 PyPI simple 源。
  • 若本地 ixi 低于云端最新版,启动脚本会按默认源、清华源、官方 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.104-cp310-abi3-win_amd64.whl (9.3 MB view details)

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+Windows x86

ixi-1.0.104-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.104-cp310-abi3-musllinux_1_2_aarch64.whl (9.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

ixi-1.0.104-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.104-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.104-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: ixi-1.0.104-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.104-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 feb392d43d9e246b64822b5333fd567447e089f65d7a65a3adfe9eea5b78e444
MD5 75e345306a5b36c83feadcf2c321188a
BLAKE2b-256 f7e1923a0fde15d682c4ec73369410b1cc85202875e978aa3c98ae654bd60082

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ixi-1.0.104-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.104-cp310-abi3-win32.whl
Algorithm Hash digest
SHA256 6ab21724bc18fa82e186dab594a11f042368b1d7cbcbea97418c5935fca56f9c
MD5 be0a3227edbf72eb2f5ffc6185daa273
BLAKE2b-256 77f6d63afd499fb8054d69cd57c300d8ea4a578363f5fe0c8dd52d2e0e19c0c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ixi-1.0.104-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ccbb6789625086ea6d5afb7a164c339f5fbef5db077cee8cde6703af19b53c00
MD5 f9563b7f338857c7c2ff9ebd79885628
BLAKE2b-256 d50ba774594548d27435ea85f2c8c1122ba0ae3fca67dffdef0a4d047bf98d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ixi-1.0.104-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 f5f13b109704383a89d1a9fc124c2df8126d6a3e8ebbd7804e167cd2d56e43c5
MD5 8a7c08a0d061bbd759dbf64970966ba3
BLAKE2b-256 714106f031d21a4c873423b002acf8b01302362500fa7dc4f8faa45134699f12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ixi-1.0.104-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 41537f2a0ee855269fb514fd17ae08fe1028f340787d3f5f0568d4c70ce82daa
MD5 8a99b02b2cea6571679963aa62f7779a
BLAKE2b-256 1c5a5e58b6eae19b2f672298c83b753aeddb9e5c6fb4051a81da1355d102b999

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ixi-1.0.104-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 62564bf89e8f9cc3db376a25679bd027705f4a13802a5be8b2714f7ada867908
MD5 f1d15893d49b700d94a860a2d545f2c7
BLAKE2b-256 e785c553614434527cf5550f3fd65ab64250478cb7e7b1c2732082015b49dbd2

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