PHP代码混淆

有的项目知识产权是归自己的,只是授权客户使用,此时就需要对PHP代码做个混淆,不能直接把脚本源代码部署到客户服务器。

cd /usr/share
git clone https://git.oschina.net/splot/php-screw-plus.git
cd ./php-screw-plus
phpize
./configure --with-php-config=/usr/bin/php-config
php_screw_plus.h 修改#define CAKEY "..." 中的CAKEY,使用新的随机字符串
make
cd ./tools
make
vim /etc/php/7.0/fpm/php.ini 加入插件信息 extension=/usr/share/php-screw-plus/modules/php_screw_plus.so

在/usr/share/php-screw-plus/tools目录中执行
./screw [project_dir] 加密
./screw [project_dir] -d 解密

 

参考文献:

https://blog.csdn.net/qiuziqiqi/article/details/91389926

posted @ 2020-03-07 21:50  蒸熊掌  阅读(1825)  评论(0编辑  收藏  举报