您的位置:首页 > 编程语言 > PHP开发

php 源码加密工具之ZendGuard

2018-01-08 11:40 507 查看
先来说说源码加密的使用场景,现在许多行业为了降低软件的开发成本,于是就有一些公司专门开发一些专业的软件,用来提供解决行业方案,这是后就有一些问题出现了,拥有软件版权的公司不希望自己源码泄露,从而会降低自己的软件在行业中的竞争力,从而降低自己的收益,于是就对源代码进行加密。

听起来很高大上,其实不然,看完我的博客,你也可以做,下面来一起跟我来看看是怎样做的:

首先,ZendGuard下载,官方下载地址:http://www.zend.com/en/products/guard/downloads#Windows,目前最新的应该是7.0.0;

接下来,配置PHP——ZendLoader.dll,官方下载地址:http://www.zend.com/en/products/loader/downloads#Windows(注意要和你当前的所使用的php
版本对应),解压后你会看到ZendLoader.dll这个动态链接库文件,复制到你的PHP扩展目录ext下,在php.ini进行下面配置:

zend_extension="./ext/ZendLoader.dll"

; Enables loading encoded scripts. The default value is On

zend_loader.enable=1

; Disable license checks (for performance reasons)

zend_loader.disable_licensing=0

; The Obfuscation level supported by Zend Guard Loader. The levels are detailed in the official Zend Guard Documentation. 0 - no obfuscation is enabled

zend_loader.obfuscation_level_support=3

; Path to where licensed Zend products should look for the product license. For more information on how to create a license file, see the Zend Guard User Guide

zend_loader.license_path=
配置完成后重启一下你的php,好了,到这儿基本就配置完成了。下在看看工具的使用方法(如下图):



最后点击下一步,就完成了对源码的加密,不是很复杂吧
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  PHP源码加密