<?php
/**
* Example of SecureMd5 class usage.
*
* @author Hossamzee (hossam_zee@yahoo.com).
* @date 18 Mar 2012.
*/
require_once("./secure.md5.class.php");
/* Usage of SecureMd5 class. */
$test_string = "Hello World";
$salted_md5 = SecureMd5::getSaltedMd5($test_string);
echo $salted_md5;
echo "<br />";
/* Usage of validating the salted md5 hash */
var_dump(
SecureMd5::validateSaltedMd5($salted_md5, $test_string)
);
|