Hello, guys. Sorry, I'm not really German so I'll be writing in English.
This is a little script I wrote on PHP to hash a string with all hashes that your PHP supports. It automatically finds what hashes it supports and then hashes your string using it. I know it's really short and nothing difficult, you may say that anyone can make it, but I find it really useful, so I am releasing it.
Screens:
Updated 09/12/29 13:22 : Added title, made the 1st page look a little nicer.
Enjoy. ;)
This is a little script I wrote on PHP to hash a string with all hashes that your PHP supports. It automatically finds what hashes it supports and then hashes your string using it. I know it's really short and nothing difficult, you may say that anyone can make it, but I find it really useful, so I am releasing it.
PHP Code:
<?php
/* ----------{Zombe's All-hash page}---------- */
echo('<title>All Hash</title>');
$pagename = $_SERVER[PHP_SELF];
if ($_GET[step] == '')
{
echo("
<center><pre>
<Form Name ='form0' action='$pagename?step=2' Method ='POST'>
Enter the string to hash:<p>
<input name='str' type='text' value=''><p>
<input name='submit' type='submit' value='Hash!'>
</form0>
</pre></center>
");
}
elseif ($_GET['step'] == '2')
{
echo("
<center>
<b><u><font size=5>$_POST[str]</font></u></b><p>
<table border='1'>
<tr>
<td align='center'><b>Hash algorythm</b></td>
<td align='center'><b>Hashed string</b></td>
</tr>
");
foreach(hash_algos() as $hash)
{
$hashed = hash($hash,$_POST[str]);
echo("
<tr>
<td align='center'>$hash</td>
<td align='center'>$hashed</td>
</tr>
");
}
echo'</table>';
}
?>
Updated 09/12/29 13:22 : Added title, made the 1st page look a little nicer.
Enjoy. ;)