【PHP】【PHP】php源码加密(一)


Encipher - PHP代码加密 | PHP源码加密
下载地址:https://github.com/uniqid/encipher
源码如下:

<?php
$app = str_replace('\\', '/', dirname(__FILE__));
require_once($app . '/lib/encipher.min.php');

$original = $app . '/original'; //待加密的文件目录
$encoded  = $app . '/encoded';  //加密后的文件目录
$encipher = new Encipher($original, $encoded);

/**
* 设置加密模式 false = 低级模式; true = 高级模式
* 低级模式不使用eval函数
* 高级模式使用了eval函数
*/
$encipher->advancedEncryption = true;

//设置注释内容
$encipher->comments = array(
   'Encipher - the PHP code encode tool',
   'Version: 1.1.1',
   '',
   'The latest version of Encipher can be obtained from:',
   'https://github.com/uniqid/encipher'
);

echo "<pre>\n";
$encipher->encode();
echo "</pre>\n";



免责声明!

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



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