Jump to content

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.