Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Coding Releases
You last visited: Today at 01:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]Multi-level MD5 encryption (php)

Discussion on [Release]Multi-level MD5 encryption (php) within the Coding Releases forum part of the Coders Den category.

Reply
 
Old   #1
 
Zombe's Avatar
 
elite*gold: 20
Join Date: Dec 2007
Posts: 1,451
Received Thanks: 840
[Release]Multi-level MD5 encryption (php)

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
PHP Code:
md5(md5(md5(md5(md5('Text'))))); 
For a lvl 5 MD5 encryption.


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
        &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp
        <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>';
    }
}
?>
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 =/
Attached Files
File Type: rar multicrypt.rar (745 Bytes, 79 views)
Zombe is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 01:52.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.