Jump to content

[SOLVED] Password decryption


Xoom3r

Recommended Posts

Hey there, I have a forum and I also have a suspect on a spamming issue.

So i checked my MySQL tables I reached the password field and its encrypted.

 

Can anyone tell me how to decrypt this password? (or at least, decrypt if you can)

9ac01a2ef71f6eab14b18b41e1ebeee6

Link to comment
Share on other sites

Wait! but then.. how does vBulletin reads it?

 

It never needs to. md5 hashes can very simply be compared. eg;

 

<?php

  $hash_stored_in_db = '9ac01a2ef71f6eab14b18b41e1ebeee6'; // <-- a hash to compare against.
  $password = $_POST['password']; // <-- password entered by user.
  if (md5($password) == $hash_stored_in_db) {
    echo "Match";
  } else {
    echo "Fail";
  }

?>

Link to comment
Share on other sites

Wait! but then.. how does vBulletin reads it?

 

It never needs to. md5 hashes can very simply be compared. eg;

 

<?php

 $hash_stored_in_db = '9ac01a2ef71f6eab14b18b41e1ebeee6'; // <-- a hash to compare against.
 $password = $_POST['password']; // <-- password entered by user.
 if (md5($password) == $hash_stored_in_db) {
   echo "Match";
 } else {
   echo "Fail";
 }

?>

 

So does the same combanation always give the same md5 password,

 

Example :

 

chris = 6b34fe24ac2ff8103f6fce1f0da2ef57 in md5 so is there a chance that chris could equal a diffrent combnation of letters?

 

For instance would chris never equal some thing diffrent from the 6b34fe24ac2ff8103f6fce1f0da2ef57?

Link to comment
Share on other sites

 

That is an odd question to ask. If the same starting value did not produce the same result, the function would be useless.

Yeah i guess so, But i just wanted to know does every word, number have its own unique md5 hass, like chris in md5 wouldnt also be the same as Chris?

Link to comment
Share on other sites

You are actually asking two different questions -

 

So does the same combination always give the same md5 password

 

is not the same as

 

does every word, number have its own unique md5 hash

 

The answer to the first question is yes. chris and Chris will give different results (try it.)

 

The answer to the second question is no. There are a finite number of different md5 values and different inputs produce the same md5. This is why it is possible using table lookups to find a starting value that can be entered that will work when the code is not using a "salt" string. Search for "md5 salt" if you want to know what that means.

Link to comment
Share on other sites

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.