Skip to main content

Example algo package with Cython-compiled submodules

Project description

🔐 License Tool

License Tool 是一個 基於 RSA 簽名驗證 的授權管理套件,提供:

  • ✅ License 簽署(sign)
  • ✅ License 驗證(verify)
  • ✅ RSA 金鑰自動生成(genkeys)

📚 目錄

🚀 安裝方式

1️⃣ 本地安裝(開發模式)

git clone https://your.repo/license_tool.git

cd license_tool

python -m venv .venv

source .venv/bin/activate

pip install -r requirements.txt

pip install -e .

使用方式

  • 必須進入license_tool的虛擬環境
  • 查看指令功能
    license-tool -h
    
    license-tool genkeys -h
    
    license-tool sign -h
    
    license-tool verify -h
    

金鑰產生

⚠️ gitlab clone下來的專案已經有keys

⚠️已經有金鑰就不要重複產生,否則金鑰可能覆蓋,造成已經生成的license失效

  • 指令:
    license-tool genkeys <output_dir>
    
  • 範例: license-tool genkeys keys
    • 📂 會產生以下兩個檔案:
    • keys/private.pem (⚠️ private.pem 絕對不能給出)
    • keys/public.pem

License 生成

  • 指令:
    license-tool sign <license_file_path> <private_key>
    
  • 範例: license-tool sign example/license.json keys/private.pem
  • License file 格式請參考下列範例
    {
        "custom_name": "IOTech",
        "macs": [
            "c8:d9:d2:19:fa:2c",
            "08:00:27:a6:59:dd",
            "08:00:27:6f:f7:c0"
        ],
        "expire_date": "2025-12-31 23:59:59",
        "deploy_cnt": "2",
        "signature": ""
    }
    

⚠️ license.json 是原始未簽名的檔案,license_out.json 是經簽名後產生的授權檔案,包含合法的 signature 欄位。

License 驗證

  • 指令:
    license-tool verify <license_path> <public_key> <host_mac>
    
  • 範例: license-tool verify example/license_out.json keys/public.pem 08:00:27:6f:f7:c0

提交內容

  • license檔案: 例如範例中的license_out.json
  • Public Key: 例如範例中的public.pem

⚠️ Private Key 絕對不能給出

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.

license_tool_ias-0.1.1-cp313-cp313-win_amd64.whl (94.5 kB view details)

Uploaded CPython 3.13Windows x86-64

license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl (130.8 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_aarch64.whl (125.0 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ ARM64

license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl (129.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl (127.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

license_tool_ias-0.1.1-cp313-cp313-macosx_10_13_universal2.whl (205.8 kB view details)

Uploaded CPython 3.13macOS 10.13+ universal2 (ARM64, x86-64)

license_tool_ias-0.1.1-cp312-cp312-win_amd64.whl (96.5 kB view details)

Uploaded CPython 3.12Windows x86-64

license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl (131.9 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_aarch64.whl (127.4 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ ARM64

license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl (130.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl (129.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

license_tool_ias-0.1.1-cp312-cp312-macosx_10_13_universal2.whl (206.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

license_tool_ias-0.1.1-cp311-cp311-win_amd64.whl (96.4 kB view details)

Uploaded CPython 3.11Windows x86-64

license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl (128.9 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_aarch64.whl (127.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ ARM64

license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl (127.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl (128.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

license_tool_ias-0.1.1-cp311-cp311-macosx_10_9_universal2.whl (197.6 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1e4f89bc3b0c0e65d9df064fed50a555e90571b67ba2110ffe80eae7f1561dc4
MD5 ffbc071b615834931b4eec6c71253b04
BLAKE2b-256 201a1b3ea373a63e08b6af19b45d22d5f2272e58e400a035e9b855bec994ba9a

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3307019368c621c91cf899abe783755bf64a322f7b7ee13cd08bbadcfecd8bc4
MD5 26d6d1987c81b5a8484a18371256f5fc
BLAKE2b-256 48285b4ec26b76b5f9293259fddeed97e8890b83471b622d640c86f69ef873a4

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 990220f5bd18049c193e574e798dec730af3999d7adc22ccad2f99953751374a
MD5 b53311ec8f69c998a42346a538ecf3f8
BLAKE2b-256 39a47dcfb1768a3b2fe9cbe71e4c526585bdcce2996cea8890b7fb15cf53c91e

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e4eddc2c3c7ab83c26b0492b916a23cb744617912bdf068b17642d41caad536
MD5 158f917d49959cbf96876eed534e4443
BLAKE2b-256 e8ea07ac524864afdb8d996dca15a42a827387825c14cfcb4f8e358f9166465d

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 15f6279c606cc78c86d5e2a52f76244cc82a8aa0ee44fa4b8f8bc2f8944b02b1
MD5 011c84f00098cbd20cc6dca7455f6560
BLAKE2b-256 fd03b76b081b2809c8b954323f538bc129e0e48b47283ce91733a6180dc78c24

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp313-cp313-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp313-cp313-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 93e25bf36020e6e1f8650b59e43970c43837d6d28e9519b165e617e75bc19f6b
MD5 5fc6d38b2ffdf8501c6b92a4dd835f13
BLAKE2b-256 738b157ca0393952c5f1f4a1edf4adda8bb8538c5c6d0cf078382867d49c3845

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 94e90fed580f18737e0caeb8eb5f60b741450515c73bf81dea7b721d6567da06
MD5 7e77c3090d80b1a4981468d11e0ef054
BLAKE2b-256 63d7cd8610996b2b277c687d86919ba56e7bdb8bfa8fcf1f99da4c6da0ac6caf

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 845f10674c3b85854a68eccd62870a536f0fb152b12a4ea480d37e7a3aa498a4
MD5 f4728999fe6a75bb0ccbf7e6e167e0e5
BLAKE2b-256 bb00ca89ab9a38b737ff1c0356273cd1eade97a486ad8bfd04dca10ae702b9f3

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 da5b3811302c0c55a7fb77f5905a5dd99e1ff50262975679e1eb91bb515e8c8a
MD5 23e7d5ab2eb3409e5a0364ca2013b74c
BLAKE2b-256 b36e59476ef4b226f8581dc9d6f3a6b5e02163b6191581cf4ec651ea17a9a120

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 a74992d195f522ab27991fb2ed1aab7afefbc2bf7126ddcd068a3bca93aa55ff
MD5 66ea7438ccf4ac5b93004be329e83dd3
BLAKE2b-256 a763ed418d4621583acaf82e2381e3d185a96f8195c1ef93294585e8f5a17668

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 957d02bc19d0438574b20071a4bcb8cba2b9576983a1034372642dcff5877a91
MD5 82e9e7dcc63c2bacf8e6fcddb64db29b
BLAKE2b-256 33fd4ae0e4aad096d2cb8002548999c686a1aa3a2f7d2441db8fe2c5004b585f

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 86c747054306021923d7489b71316c149c418ac3e704c8b2e6e5c2ec03df9067
MD5 346486b9ad6f8df3aeea87c4d3731fec
BLAKE2b-256 f1af3bfa85dcd4f606e013a6d6306d2363a4a6b807aa3e1c01183ba4c83ea35f

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 484d582f054b35344219fd1c9b279a03fc836c7b662171c71bd50bb33f4b9d65
MD5 e5557f82d8e99acd32688c12efc03688
BLAKE2b-256 8f270d30d488badfdd731e50780ee3478f03149542d408319e2382ace0e9e150

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a43204f409ffe15e899b239b4b1f0db7b392bffd3d7ea3febd72df24710d952d
MD5 ff871d7105a145bb84e0241c8d0fd8ce
BLAKE2b-256 aac8fe026e626b8b0fb27a497d8613809a7494ee22f8e255b91c6d8463a6690f

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e272d927d20d658ab5c70a49e104e4c2c2ca374f2f59e9b6296e2b7a7f88429f
MD5 5e55d2d23d1ce785fb3f518b75d49a60
BLAKE2b-256 e5dd08f08232e40c55391214f1e090dd028851023c1b2ec14cd9ec1dc5a0ac15

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5e9a2b8ecea85fd10602ad0fe3ae9e578a089f52990a11caa79d57e3c2688a73
MD5 c14aa8f0ce8f9db72cd01e176d5009c4
BLAKE2b-256 80a01ed6db8ce142e72c714754de67208c49bfbe25d044e3f5ad4b89b834677a

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b292fcc8b48eb9afb3204be1c9bd01868ee00aa8b1c7a37ed10347100c192246
MD5 5f2c11506a16e655f2799a6cf4a2bdf8
BLAKE2b-256 6022fddf383f54fec2f1be5c45bcf7b7f9361a6e81e48638bf3cf25abb8e0faf

See more details on using hashes here.

File details

Details for the file license_tool_ias-0.1.1-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for license_tool_ias-0.1.1-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7d4f268936e68ee45119c8e487ff276672b888b2ff13ee92e44d74ae4a10a796
MD5 b8f2274ed6fcb767f16f8aa104422797
BLAKE2b-256 e5b22a88034056fec8323de6da0b0fa1e2ed481b23792b0132b6a654812cf4fb

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