[SOLVED] md5 password

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

[SOLVED] md5 password

Post by g3ckO »

how to view the actual value of the md5 pasword?

Code: Select all

<?php
<?

include("database.php");

function get_user()

{ 
   $user = $_POST['user']; 
   $query = "SELECT * FROM employee WHERE username = '$user'";      
   $result = mysql_query($query); 
   $row_array = mysql_fetch_array($result);    
   return $row_array; 
} 

?><font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif"><?

   $row_array=get_user(); 
   $ID=$row_array['username']; 
   $Pass=$row_array['password']; 

?> 

   
   <hr>
   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Username</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$ID";?></b></font>
        </td>
    	</tr>
   </table>

   <div align="center"><center>
   <table border="1" cellpadding="2" cellspacing="1" width="100%">
    	<tr>
        <td align="left" valign="bottom" width="30%"
            bgcolor="#FFFFFF" valign="TOP" marginwidth="12" marginheight="12">

            <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b>Password</b></font>
        </td>
   <td align="left" valign="top" width="70%"
            bgcolor="#FFFFFF" marginwidth="12" marginheight="12">
	    
	    <font color="#671247" size="3" face="Verdana, Arial, Helvetica, sans-serif">
            <b><?echo "$Pass";?></b></font>
        </td>
    	</tr>
   </table>
?>
$pass show the value of e99a18c428cb38d5f260853678922e03.
I want it to show the real value = abc123.
How to convert it back to the real value?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can't without a lot of time spent brute force breaking it.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User avatar
g3ckO
Forum Contributor
Posts: 117
Joined: Mon Jul 12, 2004 2:57 am
Location: Malaysia
Contact:

Post by g3ckO »

ok.. I think just ignore it. Can't understand at all :)
Post Reply