2016-07-04 13:45:29 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
|
|
debug();
|
|
|
|
|
|
|
|
use \manager\sessionManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-07 15:59:31 +00:00
|
|
|
$hash = 'password';
|
2016-07-17 08:27:59 +00:00
|
|
|
$times = 10000;
|
2016-07-04 13:45:29 +00:00
|
|
|
|
2016-07-17 08:27:59 +00:00
|
|
|
$start = microtime(true);
|
|
|
|
$hashed = sessionManager::secure_hash($hash, $times);
|
|
|
|
$stop = microtime(true);
|
|
|
|
|
|
|
|
var_dump( $hashed );
|
|
|
|
$elapsed = ($stop-$start)/1000;
|
|
|
|
var_dump('time: '. $elapsed . ' ms');
|
|
|
|
var_dump('hash/sec: '. $elapsed/$times . ' ms');
|
2016-07-04 13:45:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|