# licenseTool **Repository Path**: lfdc/license-tool ## Basic Information - **Project Name**: licenseTool - **Description**: aihelpwriteing的工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-09-03 - **Last Updated**: 2026-09-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HelpWriting License Tool 独立的许可证签发工具,不包含在客户端里。 ## 功能 - 生成密钥对 - 签发许可证 - 验证许可证签名 - 直接回车进入菜单交互 ## 示例 ```bash run-license-tool.bat gen-keypair --private private.pem --public public.pem run-license-tool.bat issue --private private.pem --key HW-2026-000001 --edition monthly --months 1 --holder "客户A" --device-id ABCD1234 --feature article.write --feature article.publish --output license.json run-license-tool.bat verify --public public.pem --input license.json helpwriting-license gen-keypair --private private.pem --public public.pem helpwriting-license issue --private private.pem --key HW-2026-000001 --edition monthly --months 1 --holder "客户A" --device-id ABCD1234 --feature article.write --feature article.publish --output license.json helpwriting-license verify --public public.pem --input license.json ``` 直接双击 `run-license-tool.bat` 也可以启动。 ## 说明 - `private.pem` 只保存在你自己的签发环境 - `public.pem` 放进客户端,用于验签 - 客户端只校验,不签发 - 不带参数运行 `run-license-tool.bat` 会进入菜单 - 脚本首次运行会检查并安装 `cryptography` - `run-license-tool.ps1` 是实际启动脚本,bat 只是转发壳 - 功能白名单可填 `all` 表示全部功能,也可使用 `article.write`、`article.publish`、`wechat.publish`、`xhs.publish`、`image.generate`、`batch.publish`、`custom.template`、`aiforge`