2016-07-04 13:45:29 +00:00
|
|
|
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
2016-10-18 14:03:03 +00:00
|
|
|
require_once __ROOT__.'/autoloader.php';
|
2016-07-04 13:45:29 +00:00
|
|
|
debug();
|
|
|
|
|
|
|
|
use \manager\sessionManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-07-07 15:59:31 +00:00
|
|
|
$hash = 'password';
|
2016-08-06 09:32:50 +00:00
|
|
|
$times = 1;
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|