php-screw-plus扩展使用详解
今天我们介绍另一个与此相类似的php加密码解密扩展-phpscrew.
下载源码地址
:https://github.com/del-xiong/screw-plus.git
源码下载完成之后,第一步就是修改key,在文件php_screw_plus.h文件中.

php-screw-plus扩展修改key
执行phpize,如下:

php-screw-plus 执行phpize指令
执行./configure,如下:

php-screw-plus执行./configure
执行 sudo make,如下:

sudo make
执行sudo make install,如下:

sudo make install
修改php.ini文件,增加screw扩展
执行php -m | grep -i screw ,检查screw扩展是否安装好

确认扩展是否安装成功
切换到源码的tools文件夹中,执行make,编译加密执行程序.

生成加密程序
现在为止准备工作就都全部结束了,
执行screw xx.php ,会将xx.php进行加密

加密文件
放在网站目录中可以正常访问,加密成功.
总结:
screw加密方式和beast加密扩展的使用基本上是一样的,beast在功能上相比screw plus会更加的全面些,例如绑定网卡.