Page 1 of 1
md5
Posted: Wed Jun 15, 2005 11:15 am
by kanchan
<?
$a=md5('shrestha');
echo $a;
//it shows '4a315d707428056419bbb4aafd3ad620'
?>
now how to decode the final result to the first one ... i mean
4a315d707428056419bbb4aafd3ad620 to shrestha...
Posted: Wed Jun 15, 2005 11:27 am
by JayBird
you dont.
Not possible.
Read what MD5 is for!
Posted: Wed Jun 15, 2005 11:31 am
by kanchan
please help me...can anybody help me??????
Posted: Wed Jun 15, 2005 11:31 am
by JayBird
i just did.
It is not possible!!!!
(without a lot of processing power)
Posted: Wed Jun 15, 2005 12:04 pm
by shiznatix
you want to take the md5 and return it to what it originally was!? thats like 99.99999999999999% not ever going to happen in your lifetime. Even if you were to do a brute force it would probebly take like 5 months (if the password or whatever is random enough and not just a dictionary word). Its not going to happen so start thinking about somthing else.
Posted: Wed Jun 15, 2005 12:37 pm
by Sphen001
Hi,
Perhaps you should take a look at what md5 is meant to do.
Link
md5 is one way hashing. Un-hashing it is not possible. Perhaps you should take a look at encryption instead. It will do what you want.
Hope this helps
Sphen001
Posted: Wed Jun 15, 2005 12:44 pm
by Dale
YOu cannot reverse a MD5 encryption, however if you want to find out a HASHED thingy-ma-bob, then you will either need to download a MD5 Dictionary (which i'm not promoting) or turn into a hacker. (I'll slap you if you do so)
Posted: Wed Jun 15, 2005 2:03 pm
by ol4pr0
You could however check if something equals your md5
Code: Select all
if ($var == md5(whatever) { continue } else { stop }
Posted: Wed Jun 15, 2005 2:52 pm
by pickle
If you want to encrypt and decrypt something, look into
mcrypt()