扩展 php-screw-plus 用于php源码文件加密,实现代码安全
安装:
$ git clone https://git.oschina.net/splot/php-screw-plus.git
$ cd php-screw-plus
# 在安装编译之前, 需先配置自己的安全密钥, 这个安全密钥用于运行时解密文件 和 手动解密源码文件
# 打开下面文件 修改 https://github.com/bergundy/libbeanstalkclient
$ vi php_screw_plus.h
$ phpize
$ ./configure --with-php-config=/usr/local/php/bin/php-config
$ make && make install
基本使用
在扩展的tools目录,执行./screw [路径],[路径]可以是单个文件也可以是文件夹,然后就可以实现加密了。
网友评论