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

Uploaded CPython 3.9

pylicenser-0.0.11-cp38-cp38-manylinux1_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8

pylicenser-0.0.11-cp37-cp37m-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.7m

pylicenser-0.0.11-cp36-cp36m-manylinux1_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.6m

pylicenser-0.0.11-cp36-cp36m-macosx_10_9_x86_64.whl (442.7 kB view details)

Uploaded CPython 3.6mmacOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: pylicenser-0.0.11-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.6 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.11-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 827bd3cd6b162cd443c8ccd065895cb2569628f131572863e081f76c0137e78e
MD5 cbe0baf9e0e829d7e8e363e9d9a24ec4
BLAKE2b-256 c4389011e465dbf55ac893bc43431cdfc07401c67e62bf5774417a3b745dd921

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.11-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.7 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.11-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 b121e8a1832a0ef2beb4a58beb956a4c8d50a977e3227ce7f67ec9cf251ca2ae
MD5 0ecea231291f8744f993e0ea5492eed1
BLAKE2b-256 da24040c335806d8b96a6973b2255373c94e4c6f3fef63b1d993ce45b94cfa86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.11-cp37-cp37m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.6 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.11-cp37-cp37m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 da0d7d3a0e61f32c34989497f3b1efeb8574e082ef62cf0f31cb564d47373512
MD5 a05bdc00191d2fd5ef9f4da142b4f8f7
BLAKE2b-256 19951871080a1598a9c0759d5bb4ab220ff2a6b6de6f6f0a94a452162fb2f49f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.11-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 1.6 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.11-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 8e9926baafe1e928f662aca37be9f0d13382834241a1b3fa6b451664b03dd031
MD5 0cddfde442a39cceb0e9763159da2dc2
BLAKE2b-256 1733b4d61bc428f556aa66c102af8e5709905ed35dd8f08659656bd14fa85044

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pylicenser-0.0.11-cp36-cp36m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 442.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.11-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 2a8bf16832f5580d91f37103dfb58e91d06b3f956d7f695f3c24a0dcd17384b0
MD5 d2450248eab1ddea42a8f63a1d1cb4e5
BLAKE2b-256 5bbab4c5a51de0275dff7c254ecd263b238ca1477afbfd104b17aa6bd76d9d55

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