Jump to content

[SOLVED] How do I get and MD5ed password


rondog

Recommended Posts

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

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.