[RESOLVED] MD5 Encryption - Un-encrypting it
Hello. I have some info in a table that is MD5 encryped. How do i display the info from the table so that it displays regularly? I tried this:
PHP Code:
<? include("includes/conn.php"); ?>
<?php
//build our query
$query = "SELECT * FROM `members` WHERE member_id=151 LIMIT 1";
$query = mysql_query($query) or die(mysql_error());
//loop through each record
while($array = mysql_fetch_array($query)) {
//print out the field values and values using print_r
print_r($array['member_email']."<br>");
$password = $array['member_password'];
echo MD5($password);
}
?>
and that just displayed it with the encryption...
Re: MD5 Encryption - Un-encrypting it
MD5 is a hash algorithm, not an encryption algorithm.
When you take the MD5 sum of data, it gives you a (reasonably) unique value. You can then take the MD5 of some other piece of data. If both the MD5 sums are the same, the data is the same.
You don't "unhash" or decrypt an MD5 sum. It's impossible; a hash is a one-way operation.
Re: MD5 Encryption - Un-encrypting it
so there is no way to read the 'hash' regularly?
Re: [RESOLVED] MD5 Encryption - Un-encrypting it
No. The whole point of a hash is that it's non-reversible and non-imitable.