Page 1 of 1
help with md5 !!
Posted: Tue Aug 17, 2010 3:58 pm
by ScOrPi
Hi
i want to link between vBulletin and script that i made it
the problem is .. in my script i used md5 for password .. and it doesn't match with the same password in vBulletin
if a member have password of 123456 .. md5 would be different in the database of vBulletin
i need to know what is vBulletin use to encrypt password ?!
Re: help with md5 !!
Posted: Tue Aug 17, 2010 4:23 pm
by oscardog
Amusingly I did this recently
vBulletin combines the password (so in your case 123456) with a unique salt (that's a column in the user database) and then MD5 encrypts it... Twice.
So to get from a regular string to a vBulletin password you would do the following:
Code: Select all
$encryptedPassword = md5(md5($plainTextPassword . $uniqueUserSalt));
(Obviously you would need to grab the salt from the database)
Re: help with md5 !!
Posted: Tue Aug 17, 2010 6:03 pm
by ScOrPi
Thank you So much Dear .. that's very useful

Re: help with md5 !!
Posted: Wed Aug 18, 2010 11:54 am
by ScOrPi
oscardog wrote:Amusingly I did this recently
vBulletin combines the password (so in your case 123456) with a unique salt (that's a column in the user database) and then MD5 encrypts it... Twice.
So to get from a regular string to a vBulletin password you would do the following:
Code: Select all
$encryptedPassword = md5(md5($plainTextPassword . $uniqueUserSalt));
(Obviously you would need to grab the salt from the database)
it's like this
$password_hash = md5(md5($password_text) . $user_salt);
thank you bro ..