rondog Posted September 14, 2007 Share Posted September 14, 2007 I am in my database where I setup all the usernames and passwords. I cant remember one of them and I am trying to find out what it is. I am doing this, but it is returning the md5 hash <?php $con = mysql_connect("localhost","uname","pw"); if (!$con) { echo "unable to connect to DB"; echo mysql_error($con); exit(); } $db = mysql_select_db("db"); if (!$db) { echo "unable to open DB"; echo mysql_error($db); exit(); } $query = mysql_query("SELECT password FROM users WHERE username = 'MJackson'"); $result = mysql_fetch_array($query); echo $result[0]; ?> Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/ Share on other sites More sharing options...
pocobueno1388 Posted September 14, 2007 Share Posted September 14, 2007 md5 is a one way encryption, you can't reverse it. Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348456 Share on other sites More sharing options...
pocobueno1388 Posted September 14, 2007 Share Posted September 14, 2007 Here is a website you can try out: http://www.md5decrypter.com/ Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348457 Share on other sites More sharing options...
phat_hip_prog Posted September 14, 2007 Share Posted September 14, 2007 Good site pocobueno1388 Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348460 Share on other sites More sharing options...
rondog Posted September 14, 2007 Author Share Posted September 14, 2007 well that site didn't do much for me...What do I do since I cant figure it out? how do some sites do that forgot your password thing? Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348461 Share on other sites More sharing options...
pocobueno1388 Posted September 14, 2007 Share Posted September 14, 2007 Why didn't it do much for you? Try these ones: http://www.md5encryption.com/ http://www.md5er.com/ Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348463 Share on other sites More sharing options...
rondog Posted September 14, 2007 Author Share Posted September 14, 2007 Why didn't it do much for you? Try these ones: http://www.md5encryption.com/ http://www.md5er.com/ it said nothing found in the database Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348464 Share on other sites More sharing options...
phat_hip_prog Posted September 14, 2007 Share Posted September 14, 2007 A lookup is the only way (supposedly md5 has been hacked but thats the summing up thereof). So the only way is to update the db with a new password... Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348465 Share on other sites More sharing options...
rondog Posted September 14, 2007 Author Share Posted September 14, 2007 ahh alright I guess i'll have to do that Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348468 Share on other sites More sharing options...
pocobueno1388 Posted September 14, 2007 Share Posted September 14, 2007 Yep, thats probably your only answer. Don't forget to solve the topic. Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348471 Share on other sites More sharing options...
cooldude832 Posted September 14, 2007 Share Posted September 14, 2007 md5 is a one way encryption, you can't reverse it. You can reverse it but it has a rotating algorithm that produces a key greater than the original thus it is given the term uncrackable because the time it would take to crack a md5($string) is greater than that to crack $string Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348478 Share on other sites More sharing options...
wildteen88 Posted September 14, 2007 Share Posted September 14, 2007 pocobueno1388 the websites you posted do not actually decrypted an md5 hash/string. All them sites have a database which stores md5 hashes for commonly used words, such as the word 'the'. If you enter the md5 hash for the word 'the' you'll notice it return the word 'the'. But if you hased the word '7h3' (7 for t and 3 for e inreplacement) you may find that it wont return the original word. There is no way to easily decrypt an md5 hash except to use brute force. Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348484 Share on other sites More sharing options...
cooldude832 Posted September 14, 2007 Share Posted September 14, 2007 as I said its considered uncrackable because its returned string is greater than the original string. And the return string is not a linear A=1 B=2 sorta deal its based on letter position, a random key placed in the encryption and so forth. Link to comment https://forums.phpfreaks.com/topic/69355-solved-how-do-i-get-and-md5ed-password/#findComment-348485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.