PHP Classes

File: testHashmore.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Mo´se  >  Yet Another Hash Package  >  testHashmore.php  >  Download  
File: testHashmore.php
Role: Example script
Content type: text/plain
Description: example script
Class: Yet Another Hash Package
Generate a hash of a string using text scrambling
Author: By
Last change:
Date: 4 years ago
Size: 615 bytes
 

Contents

Class file image Download
<?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('leizmo@gmail.com','another string here',10,$ti)

);
$end = microtime(true);
 
var_dump(
$f=$x->secretstr('leizmo@gmail.com','',10,$ti)
 );

var_dump($f==$e);

 
var_dump(
$f=$x->secretstr('leizmo@gmail.com','another string here',11,$ti)
 );
 
var_dump($f==$e);
 
var_dump(
$f=$x->secretstr('leizmo@gmail.com','another string here',10,$ti)
);
 
var_dump($f==$e);
var_dump ($ti).'<br>';
echo (
$end - $start);

?>

For more information send a message to info at phpclasses dot org.