Skip to main content

代码混淆

Project description

Pylicenser

提供了2种加密的方式:

  1. 基于sourcedefender的原理自己加以实现的,更好的兼容了目录级别的代码加密
  2. 使用Cython进行代码封装。

安装

pip install pylicenser

加密

usage: pylicenser encrypt [-h] [--ttl TTL] [--dist DIST] str [str ...]

positional arguments:
  str          待加密的文件或文件夹

optional arguments:
  -h, --help   帮助信息
  --ttl TTL    有效日期,默认:0,单位:seconds。示例: 1s、2d、3m、4h (default: 0)
  --dist DIST  输出目录,默认当前dist目录 (default: ./dist)

运行加密代码

usage: pylicenser run [-h] script ...

positional arguments:
  script      py脚本文件
  args        脚本需要的参数

optional arguments:
  -h, --help  帮助信息

使用Cython方式加密

采用该方式需要预先安装Cython,安装方式如下:

pip install Cython --install-option="--no-cython-compile"

使用方式如下:

usage: pylicenser cython [--dist DIST] [-h] str [str ...]

positional arguments:
  str          待编译的代码文件或文件夹

optional arguments:
  --dist DIST  输出目录,默认当前dist目录 (default: ./dist)
  -h, --help   帮助信息

Cython加密后,不影响代码原有使用方式,即原来脚本怎么运行,加密后还是怎么运行。
相较于第一种加密,Cython加密具有平台依赖性,即在darwin上加密的代码在win或者linux下不一定能运行。

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.

pylicenser-0.0.10-cp39-cp39-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9

pylicenser-0.0.10-cp38-cp38-manylinux1_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8

pylicenser-0.0.10-cp37-cp37m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.7m

pylicenser-0.0.10-cp36-cp36m-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.6m

pylicenser-0.0.10-cp36-cp36m-macosx_10_9_x86_64.whl (389.7 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

Details for the file pylicenser-0.0.10-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: pylicenser-0.0.10-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pylicenser-0.0.10-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 c32804f8fab731f67f820b4684e6672d963f46e72cccf6a164970e343d1972d7
MD5 fcd1e2c79430b1826f27c1965029fbd9
BLAKE2b-256 625f2ac847c6870e0b026397a301d892ef2abac6b08f67eb0369d6e51a91eaae

See more details on using hashes here.

File details

Details for the file pylicenser-0.0.10-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: pylicenser-0.0.10-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.5 MB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pylicenser-0.0.10-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 a61521e6d50b407b9049f7dcfbcaa6d3c92930f7b6223052b28a130d2a2517f9
MD5 4cad84f2466e23973b568892e415bc5e
BLAKE2b-256 7bcbea593e23dbf17ede3c767d402526dca3b80f9f9759f78ff12402312ea6f7

See more details on using hashes here.

File details

Details for the file pylicenser-0.0.10-cp37-cp37m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pylicenser-0.0.10-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.7m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pylicenser-0.0.10-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9ad5b6f68cf0d3dddb67af01f4d2c28326731fb1099d0dcf3f4c871d814a51a6
MD5 e0257ca8c37ff9714f752b90242a40f5
BLAKE2b-256 0762d3d77b6b2a9a6668de1bb3a9edb3a8eaea508b0f48148c61b47b250e71fb

See more details on using hashes here.

File details

Details for the file pylicenser-0.0.10-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: pylicenser-0.0.10-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pylicenser-0.0.10-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5ed429d75fb24bcca7a340bc9461bbb966ea45e882a6845601c51fd9a554c022
MD5 5f31d2f2dbc09ed57df1f039f7ffdbe5
BLAKE2b-256 deb7eb39f2cd4fa499bc1fde0ff6d1e10fa9ab61abd17a75a127633937fd851f

See more details on using hashes here.

File details

Details for the file pylicenser-0.0.10-cp36-cp36m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: pylicenser-0.0.10-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 389.7 kB
  • Tags: CPython 3.6m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.0.post20201006 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for pylicenser-0.0.10-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 ea3fd503e744b4d96e7b14d9b02fb92a03483e86aedd7fd1f8f89f959e89142e
MD5 ca4a192b8b1c1cef8db4a9dd9bdd0a00
BLAKE2b-256 09f770ebaa3c0940a435e85eaef2317a3b2bea9d5a07c072a8ff8d99e0ddec93

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