<?php
require_once('./Ezama_Hashmore.php');
$x=new \eZama\Hashmore(new Hashids\Hashids());
echo '<pre>';
$ti=microtime();
$start = microtime(true);
var_dump(
$e=$x->secretstr('[email protected]','another string here',10,$ti)
);
$end = microtime(true);
var_dump(
$f=$x->secretstr('[email protected]','',10,$ti)
);
var_dump($f==$e);
var_dump(
$f=$x->secretstr('[email protected]','another string here',11,$ti)
);
var_dump($f==$e);
var_dump(
$f=$x->secretstr('[email protected]','another string here',10,$ti)
);
var_dump($f==$e);
var_dump ($ti).'<br>';
echo ($end - $start);
?>
|