<title>Generate Hash</title>
<?php
$form ="
<form action=\"\" method=\"post\">
<input type=\"text\" name=\"gen_hash\" size=\"35\"/>
<input type=\"submit\" name=\"submit\" value=\"Generate\" />
</form>
";
include("config/config.php");
if(isset($_POST["submit"])) {
$fieldset = "<fieldset>
<legend>Password</legend>
".$_POST['gen_hash']."
</fieldset>
<fieldset>
<legend>Common Hashes</legend>
<table align=\"left\">
<tr><td width=\"80\">md5</td><td>".md5($_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">md4</td><td>".hash('md4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">md2</td><td>".hash('md2',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">sha1</td><td>".sha1($_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">sha256</td><td>".hash('sha256',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">sha384</td><td>".hash('sha384',$_POST['gen_hash'])."</td></tr>
</table>
</fieldset>
<fieldset>
<legend>Uncommon Hashes</legend>
<table align=\"left\">
<tr><td width=\"80\">crc32</td><td>".hash('crc32',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">crc32b</td><td>".hash('crc32b',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger128,3</td><td>".hash('tiger128,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger160,3</td><td>".hash('tiger160,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger192,3</td><td>".hash('tiger192,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger192,4</td><td>".hash('tiger192,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger128,4</td><td>".hash('tiger128,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">tiger160,4</td><td>".hash('tiger160,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval192,3</td><td>".hash('haval192,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval224,3</td><td>".hash('haval224,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval160,3</td><td>".hash('haval160,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval256,3</td><td>".hash('haval256,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval128,3</td><td>".hash('haval128,3',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval160,4</td><td>".hash('haval160,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval192,4</td><td>".hash('haval192,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval256,4</td><td>".hash('haval256,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval128,4</td><td>".hash('haval128,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval224,4</td><td>".hash('haval224,4',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval160,5</td><td>".hash('haval160,5',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval128,5</td><td>".hash('haval128,5',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval224,5</td><td>".hash('haval224,5',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval192,5</td><td>".hash('haval192,5',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">haval256,5</td><td>".hash('haval256,5',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">ripemd128</td><td>".hash('ripemd128',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">ripemd160</td><td>".hash('ripemd160',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">ripemd256</td><td>".hash('ripemd256',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">ripemd320</td><td>".hash('ripemd320',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">adler32</td><td>".hash('adler32',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">gost</td><td>".hash('gost',$_POST['gen_hash'])."</td></tr>
<tr><td width=\"80\">snefru</td><td>".hash('snefru',$_POST['gen_hash'])."</td></tr>
</table>
</fieldset>";
$md5hash = md5($_POST['gen_hash']);
$password = $_POST['gen_hash'];
mysql_query("INSERT INTO hashes (hash, password) VALUES ('$md5hash', '$password')");
mysql_close();
}
define("IN_MYBB", 1);
//define("NO_ONLINE", 1); // Wenn Seite nicht in Wer ist online-Liste auftauchen soll
require("global.php");
add_breadcrumb("Generate_Hash");
eval("\$Generate_Hash = \"".$templates->get("Generate_Hash")."\";"); // Hier wird das erstellte Template geladen
output_page($Generate_Hash);
?>