https://github.com/jader/codeencryption
:whale: 快速、方便的 Swoole-Compiler 代码加密环境
https://github.com/jader/codeencryption
codeencryption docker php-library swoole-compiler
Last synced: 10 months ago
JSON representation
:whale: 快速、方便的 Swoole-Compiler 代码加密环境
- Host: GitHub
- URL: https://github.com/jader/codeencryption
- Owner: Jader
- License: apache-2.0
- Created: 2019-07-05T07:29:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T06:46:37.000Z (almost 2 years ago)
- Last Synced: 2025-04-12T08:52:24.828Z (10 months ago)
- Topics: codeencryption, docker, php-library, swoole-compiler
- Homepage:
- Size: 12.7 KB
- Stars: 111
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 快速、方便的 Swoole-Compiler 代码加密环境
## 部署
### 安装依赖工具
- Git
- Docker [https://docs.docker.com/install/]
- Docker-compose [https://docs.docker.com/compose/install/#install-compose]
### 获取部署脚本
```
$ git clone https://github.com/Jader/CodeEncryption.git
```
### 运行容器编排
```
$ cd CodeEncryption // 进入项目根目录
$ docker-compose up -d // 容器编排命令
```
$ docker-compose exec swoole-compiler swoole-compiler
## 使用
### 目录介绍
```
├── code // 这里放加密的文件或文件夹
├── conf // 加密时所使用的配置文件目录
├── output // 加密完成后授权文件和加密文件包存在位置
├── docker-compose.yml
├── LICENSE
├── README.md
```
### 命令介绍
获取swoole-compiler信息、帮助信息
```
docker-compose exec swoole-compiler swoole-compiler
```
生成授权文件
```
docker-compose exec swoole-compiler swoole-compiler -t license -c conf/compiler.config
```
生成加密文件
```
docker-compose exec swoole-compiler swoole-compiler -t code -c conf/compiler.config
```
## 注意
Swoole-Compiler 服务端所需的 PHP 扩展 和配置
php.ini
```
[swoole_compiler]
extension=swoole_loader72.so ; 关于扩展需要去swoole官方购买后得到
swoole_license_files=/data/www/Jade/jade.license ;这里是产生的授权文件
```