SMMP/public_html/test/testHashChain.php

25 lines
438 B
PHP
Raw Permalink Normal View History

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;
$hash = 'password';
2016-08-06 09:32:50 +00:00
$times = 1;
2016-07-04 13:45:29 +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
?>