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.9-cp39-cp39-manylinux1_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.9

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

Uploaded CPython 3.8

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

Uploaded CPython 3.7m

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

Uploaded CPython 3.6m

File details

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

File metadata

  • Download URL: pylicenser-0.0.9-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.9-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 5e909a8f40d04b78e181d51bbdbd0fb71215fc39ec633b4ac58ee465099b3a96
MD5 d9c695dbb5328e7df63c55f1941cf79a
BLAKE2b-256 6b0b5bc02d5b3a2a5d5ecead70f3b929bd9cb9b80e938818d26b8b6205d518eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.9-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.9-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 df043360dd5a3f53242645f918fe51d5053afea25d023293e6d27ee853d28d17
MD5 e8405574fb018a01c021664cb70cca23
BLAKE2b-256 82a6741421fb7f6bf647f97d7ae8eb5a42f3e996d5af70bf595fff0b6146364a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.9-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.9-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9e1ae38343ee9af536e434704ceeb97e2689cb92f5af25f01c20633f603e0f3e
MD5 e9496a6ca50f2c8b74e6286cffc7a3d1
BLAKE2b-256 91cb48185aea068180d894fb8d587f6e4607dc26a876826c014a5a1b6e610e0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.9-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.9-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 d2357322d4f73fb221fa5b7a87c71f8965a3c6da418a6f53b979d4aa04fc132c
MD5 8a109bd271f32363e74732eea5f137f4
BLAKE2b-256 46c3e5f1e5e000585824b7de30f57d7734a99e12a75f991529024cba6f5ae867

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