SMMP/test/testHashChain.php

31 lines
412 B
PHP

<?php define('__ROOT__', dirname(dirname(__FILE__)) );
require_once __ROOT__.'/manager/autoloader.php';
debug();
use \manager\sessionManager;
$hash = 'password';
$hashes = [];
for( $i = 0 ; $i < 1000 ; $i++ ){
$hash = sessionManager::secure_hash($hash);
if( isset($hashes[$hash]) )
var_dump('already');
$hashes[$hash] = null;
var_dump($hash);
}
var_dump( count($hashes) );
?>