VBulletin Password Encryption

Just in case if anyone is looking how the VB password encryption is done, it’s not like;

$hash=MD5($password)

the way that I thought at first, but it’s done in this way;

$hash=MD5(MD5($password)+$salt)

so that no identical encrypted strings are stored in the database.

Posted August 27th, 2006 by mightyhitter under VBulletin

 

7 Responses to “VBulletin Password Encryption”

  1. Mohan Says:

    Hi,

    How I will get the value for $salt variable.

    Mohan

  2. mightyhitter Says:

    It should be from the database itself.

  3. Mob1us Says:

    I typed the following (the values for $password and $salt are correct)

    $password = “A”; // <- i’ve tried this with capital and lower-case “a”
    $salt = “EG-”; // <- same as above.

    echo “” . MD5(MD5($password)+$salt) . ““;
    What the database has and what my code prints out every time are different… are you sure that’s the correct schema for vBulletin? If so, what could I be doing wrong?

  4. Mob1us Says:

    *Sorry, that bold part reads:

    echo MD5(MD5($password)+$salt);

  5. Ye Says:

    MD5(MD5($password)+$salt)

    it should be:
    MD5(MD5($password).$salt)

  6. Akbar Says:

    How can I decrypt the VB password??

  7. Dolbex Says:

    Just trying to clear some things up for some people. You can’t really decrypt the md5 password, thats the whole point of md5 - it’s one way encryption.

    To get the salt you need to look in the vb_user table. If you are in vBulletin you can call the variable with this: $vbulletin->userinfo[’salt’]

Leave a Reply