1. 程式人生 > >php 原始碼加密工具之ZendGuard

php 原始碼加密工具之ZendGuard

先來說說原始碼加密的使用場景,現在許多行業為了降低軟體的開發成本,於是就有一些公司專門開發一些專業的軟體,用來提供解決行業方案,這是後就有一些問題出現了,擁有軟體版權的公司不希望自己原始碼洩露,從而會降低自己的軟體在行業中的競爭力,從而降低自己的收益,於是就對原始碼進行加密。

聽起來很高大上,其實不然,看完我的部落格,你也可以做,下面來一起跟我來看看是怎樣做的:

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,好了,到這兒基本就配置完成了。下在看看工具的使用方法(如下圖):


最後點選下一步,就完成了對原始碼的加密,不是很複雜吧