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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM