Zend Guard = PHP 代碼加密(編碼/混淆)+ 授權管理(License)。保護商業軟件知識產權,防止源碼洩露、未授權複製、逆向工程。
| 組件 | 支持範圍 |
|---|---|
| 操作系統 | Linux x86、Windows x86 (2000/XP/2003/Vista 32位)、Mac OS X 10.4/10.5 |
| PHP 版本 | 4.2.x ~ 5.2.x(注意:不支持 PHP 5.3+) |
| Zend Guard 版本/編碼模式 | 所需 Zend Optimizer 版本 |
|---|---|
| Zend Encoder/SafeGuard 3.1 (Host ID) | 2.5.x |
| Zend Encoder/SafeGuard 3.6 (Zend ID) | 2.5.2 |
| Zend Guard 4.x (Basic Encoding) | 2.6.x |
| Zend Guard 5.0 (PHP 4, Basic) | 2.6.x |
| Zend Guard 4.x (Full Obfuscation) | 3.0.x |
| Zend Guard 5.0 (PHP 4, Full Obfuscation) | 3.0.x |
| Zend Guard 5.0 (PHP 5, All Encoding) | 3.3.x |
原則:運行加密文件的服務器必須安裝對應版本的 Zend Optimizer,否則報錯 Incompatible file format。
a, b),大幅提高逆向難度,略微增加解碼開銷。A: 試用版無時間限制,但加密後的文件14 天後過期;生成的授權文件3 天後過期。正式項目必須購買授權。
A: 安裝 Zend Guard 後,菜單 Help → Generate Zend ID,將生成的 ID 發給銷售換取授權文件 zend_guard.zl。
A: Help → Register → Search a license file on my disk 選擇 zend_guard.zl 即可。
A:
Fatal error: Incompatible file formatA: Zend Optimizer 版本不匹配。查上表,升級/降級服務器端 Optimizer 至對應版本。
A: 此選項將整個項目作為一個整體加密,任何文件單獨提取或與其他加密項目混合都無法運行。除非極高安全需求,否則不建議開啟,會給部署、更新帶來極大麻煩。
A: Zend Optimizer 在解碼同時進行 opcode 優化,加密後代碼通常比原始碼運行更快(約 5-20% 提升)。
Zend Guard 5.0 最高支持 PHP 5.2。現代項目(PHP 7/8)請改用: