123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- ini_set("display_errors", "On");
- set_time_limit(0);
- error_reporting(E_ALL & ~E_NOTICE);
- require_once realpath(dirname(__FILE__)) . '/../common.php';
- $res = "8uhmr7\/GcQoKIJw7\/59CELULWirYXirgcM0UlmCHPcBH1p0zpcANPMU+vWLDb3t2blbWQnSu9IpmsU+5FPt8p00N\/E62jqFwjh0\/5x\/PY80g";
- var_dump(Utils::decodeRC4($res));exit;
- $source = 'this is message,哈哈哈哈哈,';
- $last = '';
- $st = microtime(true);
- for ($i = 0; $i < 100000; $i++) {
- $source .= $i;
- $e = $objAES->encode($source);
- if ($last == $e) {
- var_dump('error');
- }
- $last = $e;
- }
- $et = microtime(true);
- var_dump('encode done, cost:' . ($et - $st));
- $st = microtime(true);
- for ($i = 0; $i < 100000; $i++) {
- $s = $objAES->decode($e);
- }
- $et = microtime(true);
- var_dump('encode done, cost:' . ($et - $st));
|