php screw加密
2016-02-18 00:00
756 查看
Download
http://sourceforge.net/projects/php-screw/
Installation(参照压缩包内README.en)
(1) Unpack php\_screw-1.5.tgz.
(2) Customize encryption / decryption
change the stamp in php\_screw.h
Notice:PM9SCREW\_LEN must be less than or equal to the size of PM9SCREW.
(3) Execute the following command with directory php\_screw-1.5
(4) Compile the decryptor
(5) Copy modules/php\_screw.so into an extension directory.
(6) Add the next line to php.ini.
(7) Restart the httpd daemon.
(8) Compile the encryption tool
(9) Encrypting a PHP script
遇到的问题
/opt/soft/php\_screw-1.5/php\_screw.c: In function ‘zm\_startup\_php\_screw':/opt/soft/php\_screw-1.5/php\_screw.c:124: 错误:‘zend\_compiler\_globals' 没有名为 ‘extended\_info' 的成员/opt/soft/php\_screw-1.5/php\_screw.c: In function ‘zm\_shutdown\_php\_screw':/opt/soft/php\_screw-1.5/php\_screw.c:133: 错误:‘zend\_compiler\_globals' 没有名为 ‘extended\_info' 的成员make: ** [php\_screw.lo] 错误 1*
解决方法: 需要修改php\_screw.c 把CG(extended\_info) = 1; 修改为:
~~~~~~~~~~~~~~~~
archlinux未遇到此错误
/root/php\_screw-1.5/php\_screw.c: In function ‘pm9screw\_compile\_file':解决方法:
需要修改php\_screw.c
把第78,84,93行的org\_compile\_file(file\_handle, type);
修改为:
然后再make就成功了。
其他加密方法
https://github.com/liexusong/php-beast
http://sourceforge.net/projects/php-screw/
Installation(参照压缩包内README.en)
(1) Unpack php\_screw-1.5.tgz.
(2) Customize encryption / decryption
vi my\_screw.h
change the stamp in php\_screw.h
Notice:PM9SCREW\_LEN must be less than or equal to the size of PM9SCREW.
(3) Execute the following command with directory php\_screw-1.5
phpize ./configure
(4) Compile the decryptor
make
(5) Copy modules/php\_screw.so into an extension directory.
cp modules/php\_screw.so /usr/lib/php/modules
(6) Add the next line to php.ini.
extension=php\_screw.so
(7) Restart the httpd daemon.
(8) Compile the encryption tool
cd tools make
(9) Encrypting a PHP script
screw "Path to the PHP script to be encrypted"
遇到的问题
/opt/soft/php\_screw-1.5/php\_screw.c: In function ‘zm\_startup\_php\_screw':/opt/soft/php\_screw-1.5/php\_screw.c:124: 错误:‘zend\_compiler\_globals' 没有名为 ‘extended\_info' 的成员/opt/soft/php\_screw-1.5/php\_screw.c: In function ‘zm\_shutdown\_php\_screw':/opt/soft/php\_screw-1.5/php\_screw.c:133: 错误:‘zend\_compiler\_globals' 没有名为 ‘extended\_info' 的成员make: ** [php\_screw.lo] 错误 1*
解决方法: 需要修改php\_screw.c 把CG(extended\_info) = 1; 修改为:
CG(compiler\_options) |= ZEND\_COMPILE\_EXTENDED\_INFO;
~~~~~~~~~~~~~~~~
archlinux未遇到此错误
/root/php\_screw-1.5/php\_screw.c: In function ‘pm9screw\_compile\_file':解决方法:
需要修改php\_screw.c
把第78,84,93行的org\_compile\_file(file\_handle, type);
修改为:
org\_compile\_file(file\_handle, type TSRMLS\_CC);
然后再make就成功了。
其他加密方法
https://github.com/liexusong/php-beast
相关文章推荐
- PHP如何实现异步数据调用
- PHP如何获取客户端真实IP
- github上比较有趣的php项目
- phpmailer用法
- PayPal Express Checkout with PHP-code
- php保留关键字
- ubuntu安装PHP的swoole扩展
- PHP的静态变量
- php mail 发送邮件
- 深入理解PHP的.htaccess文件
- Zephir--最简单的php扩展开发工具
- Ubuntu Pure-Ftpd安装配置
- PHP批量生成图片缩略图
- php实现简单的验证码功能
- php实现一个简单的加密解密处理类
- php图片加水印, 生成缩略图
- php实现身份证号码检查类
- php zip压缩文件
- php zip解压文件
- php获取中文字符拼音首字母