Skip to main content

代码混淆

Project description

Pylicenser

提供了2种加密的方式:

  1. 基于sourcedefener的原理自己加以实现的,更好的兼容了目录级别的代码加密
  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.8-cp39-cp39-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9

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

Uploaded CPython 3.8

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m

pylicenser-0.0.8-cp36-cp36m-macosx_10_9_x86_64.whl (389.0 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pylicenser-0.0.8-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.8-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 54357301ddd3331f29ec2ab1368f78823cf163c576bf0ffa96a32cfff741050c
MD5 5e47a563347b4176be43246a17f073e9
BLAKE2b-256 4b80d2bc9529e0e4ba5429b69379f3dcaa6151771c9cc674d504f3ee682a595c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.8-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.8-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 23adc7ad75c4b4a38bf17cc95244a1bf81d6db0efb780b42d0c101bed944c8a4
MD5 3571b835665885880502705431775de8
BLAKE2b-256 fc454313947d7b3ff3d9de9cec4984cf0274fa1378a8f1508cb0489788fdb197

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.8-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.8-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5b7970b277c68050699972e0ee58390860990bcffed5b0c1cc2c3e40097f5c85
MD5 6677bd1f3d3ab733b54db7446535edb2
BLAKE2b-256 af1441b09334009739bb4dab904567d31ecbf21ef09c0a499077ad836f827aad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.8-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.8-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 1928965cca063633e75504a77f50dac245c3a78bea317bafd11d6fe3eb9542ab
MD5 94235a8cb5851fa9559f4ca094abeeef
BLAKE2b-256 16bbd9cdeef198298c970bbb7eebc48f8f4a30a38cd34425c8f30b845efdb6e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.8-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 389.0 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.8-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3c15af2dc65cb7c842b1b10f805ff652f557f8567c4ba47ca59369f007fc4d98
MD5 b2c66513fda17baabe1966108c8dab42
BLAKE2b-256 0514f85cae6f2410bd9a9a78d632a81378c0ef739f56ed27ed36deae62a481ca

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