-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.php
33 lines (25 loc) · 982 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/*************************************************
Encipher - the PHP code encode tool
Author: Jacky Yu <[email protected]>
Copyright (c): 2012-2017 Jacky Yu, All rights reserved
Version: 1.1.2
* This library is free software; you can redistribute it and/or modify it.
* You may contact the author of Encipher by e-mail at: [email protected]
The latest version of Encipher can be obtained from:
https://github.com/uniqid/encipher
*************************************************/
$app = str_replace('\\', '/', dirname(__FILE__));
require_once($app . '/lib/encipher.php');
$original = $app . '/original'; //待加密的文件目录
$encoded = $app . '/encoded'; //加密后的文件目录
$encipher = new Encipher($original, $encoded);
/**
* 设置加密模式 false = 低级模式; true = 高级模式
* 低级模式不使用eval函数
* 高级模式使用了eval函数
*/
$encipher->advancedEncryption = true;
echo "<pre>\n";
$encipher->encode();
echo "</pre>\n";