1. 程式人生 > >ZendGuard加密PHP檔案

ZendGuard加密PHP檔案

1、安裝

1.下載 ZendGuard-7.0.0-linux.gtk.x86.tar.gz

2.解壓ZendGuard-7.0.0-linux.gtk.x86.tar.gz

3.生成license(許可證)

許可證文件
http://files.zend.com/help/Zend-Guard/content/creating_a_signature_license_(command_line).htm

許可限制

Date: 過期時間
Concurrent UsersIP Range: 網段限制,
Docker 172.17.0.0/16ZendID (unique code based on the machine hardware)
license key

zendenc_sign --genenckey license.key

lic_def_file

vim itellyou-blog.lic_def_file

Product-Name = itellyou-blog
Registered-To = itellyou
Expires = 01-Jan-2020
Host-ID = Not-Locked
IP-Range = 172.17.0.0/16
Company = itellyou

生成許可證

zendenc_sign itellyou-blog.lic_def_file itellyou-blog.zl license.key

Product ExpirationIP NumbersZend Host ID’sConcurrent Users

4.配置php.ini,安裝 Zend Guard Loader

    zend_extension = /usr/local/lib/php/ZendGuardLoader.so ##路徑根據實際情況而定
    zend_loader.enable=1
    zend_loader.disable_licensing=0
    zend_loader.obfuscation_level_support=3
    zend_loader.license_path=

5.命令列加密

zendenc語法及引數

zendenc加密例子