Ok, I was very bored. This script encrypts any string using a fe md5 hashes 1 after another. Note, taht using a few md5 hashes (lets say 10) 1 after another may cause a tiny bit more lag, but it is at least a thousand times harder to crack, so I would really recommend you use multi-level MD5 from now on, if you need to encrypt something.
As if you would use
For a lvl 5 MD5 encryption.
The script:
Screenshots:
Ok, it may be easy to make, and lame, but... As I said, I was bored, and couldn't think of anything more useful to make.
If this is ANY use to someone, then I am happy.
EDIT: Attachment rar'ed because I can't attach PHP files =/
As if you would use
PHP Code:
md5(md5(md5(md5(md5('Text')))));
The script:
PHP Code:
<?php
/* ----------{Zombe's multi-level MD5 encryption}---------- */
$pagename = basename($_SERVER['PHP_SELF']);
if ($_GET['step'] == "")
{
echo"
<center><Form Name ='form' action='$pagename?step=2' Method ='POST'>
Display:<p>
<input type='radio' name='type' value='all' checked> All encryption levels up to the selected one
             
<input type='radio' name='type' value='single'> A single encryption level<p>
Write the string you would like to encrypt:<br>
<input name='md5' type='text' value=''><p>
Number of levels of encryption:<br>
<input name='levels' type='text' value='256'><br>
<input name='submit' type='submit' value='Go'>
</form></center>
";
}
elseif (($_GET['step'] == "2"))
{
$md5 = $_POST[md5];
$levels = $_POST[levels];
$type = $_POST['type'];
echo "
<center>
<b><u><font size=5>$md5</font></u></b><p>
<table border='1'>
<tr>
<td align='center'><b>Encryption level</b></td>
<td align='center'><b>Hash</b></td>
</tr>
";
if ($type == all)
{
while ($number<$levels)
{
$number = ($number + 1);
$md5 = md5($md5);
echo "
<tr>
<td align='center'><b>$number</b></td>
<td align='center'><b>$md5</b></td>
</tr>
";
}
echo '</table></center>';
}
elseif ($type == single)
{
while ($number<$levels)
{
$number = ($number + 1);
$md5 = md5($md5);
if ($number == $levels)
{
echo "
<tr>
<td align='center'><b>$number</b></td>
<td align='center'><b>$md5</b></td>
</tr>
";
}
}
echo '</table></center>';
}
}
?>
Ok, it may be easy to make, and lame, but... As I said, I was bored, and couldn't think of anything more useful to make.
If this is ANY use to someone, then I am happy.
EDIT: Attachment rar'ed because I can't attach PHP files =/