<?php
/**
* All-In-One Hasher w/a Pinch of Salt.
*
* Algo's
* - MD5
* - SHA1/SHA256/SHA512
* - WHIRLPOOL
* - CRC32/CRC32B
* - HAVAL256,3/HAVAL256,4/HAVAL256,5
*/
require_once 'AIOHasher.class.php';
echo "MD5 no Salt: " . AIOHasher::md5('Hello') . PHP_EOL;
echo "MD5 with Salt: " . AIOHasher::md5('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "SHA1 no Salt: " . AIOHasher::sha1('Hello') . PHP_EOL;
echo "SHA1 with Salt: " . AIOHasher::sha1('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "SHA256 no Salt: " . AIOHasher::sha256('Hello') . PHP_EOL;
echo "SHA256 with Salt: " . AIOHasher::sha256('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "SHA512 no Salt: " . AIOHasher::sha512('Hello') . PHP_EOL;
echo "SHA512 with Salt: " . AIOHasher::sha512('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "WHIRLPOOL no Salt: " . AIOHasher::whirlpool('Hello') . PHP_EOL;
echo "WHIRLPOOL with Salt: " . AIOHasher::whirlpool('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "CRC32 no Salt: " . AIOHasher::crc32('Hello') . PHP_EOL;
echo "CRC32 with Salt: " . AIOHasher::crc32('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "CRC32B no Salt: " . AIOHasher::crc32b('Hello') . PHP_EOL;
echo "CRC32B with Salt: " . AIOHasher::crc32b('Hello', true, '5417', 1) . PHP_EOL . PHP_EOL;
echo "HAVAL256,3 no Salt: " . AIOHasher::haval256_3('Hello') . PHP_EOL;
echo "HAVAL256,3 with Salt: " . AIOHasher::haval256_3('Hello', true, '5417', 1) . PHP_EOL;
echo "HAVAL256,3 no Salt: " . AIOHasher::haval256_4('Hello') . PHP_EOL;
echo "HAVAL256,3 with Salt: " . AIOHasher::haval256_4('Hello', true, '5417', 1) . PHP_EOL;
echo "HAVAL256,5 no Salt: " . AIOHasher::haval256_5('Hello') . PHP_EOL;
echo "HAVAL256,5 with Salt: " . AIOHasher::haval256_5('Hello', true, '5417', 1) . PHP_EOL;
|