vi my_screw.h -- Please change the encryption SEED key (pm9screw_mycryptkey) into the values according to what you like. The encryption will be harder to break, if you add more values to the
encryption SEED array. However, the> the time of the decrypt processing. * If you can read and understand the source code, to modify an original encryption logic will be possible. But in general, this should not be necessary. OPTIONAL: Encrypted scripts get a stamp added to the beginning of the file. If you like, you may change this stamp defined by PM9SCREW and PM9SCREW_LEN in php_screw.h. PM9SCREW_LEN must
be less than or equal to the>
4.编译 make 5.拷贝modules目录下的php_screw.so文件到/usr/lib/php5/extension目录下 cp modules/php_screw.so /usr/lib/php5/extension/ 6.编辑php.ini文件 在php.ini文件里,加入如下语句 extension=php_screw.so 7.重新启动Apache /srv/apache/bin/apachectl restart 8.编译加密工具 cd tools make 9.将tools目录下加密用的工具screw拷贝到适当目录 cp screw /usr/bin/ 经过以上的10步,就已经把php_screw-1.5全部安装完成了。并且现在的php也已经支持解释加密过的php文件了 使用 1.现写一个要加密的php文件。 我写了如下的一个用来测试php速度的test.php文件 复制代码 代码如下: