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 ?!
help with md5 !!
Moderator: General Moderators
Re: help with md5 !!
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:
(Obviously you would need to grab the salt from the database)
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));
Re: help with md5 !!
Thank you So much Dear .. that's very useful 
Re: help with md5 !!
it's like thisoscardog 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:
(Obviously you would need to grab the salt from the database)Code: Select all
$encryptedPassword = md5(md5($plainTextPassword . $uniqueUserSalt));
$password_hash = md5(md5($password_text) . $user_salt);
thank you bro ..