The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question about password hash
Before I switched to vbulletin, I was using phpbb. I had coded a login system in C++ where the user could enter their forum username and password, and then if they were in a paid subscription group, they could use the software. It used mysql apis to retrieve information from the database. Now phpbb encoded their passwords with an md5 algorithm. Since the algorithm generates the same hash on any programming language, I hashed the password the user typed in from C++, then compared it with the already hashed password stored on the server, and if they matched, the user could log in and continue with the authentication process. Now when I switched to VB, I made some minor changes for the new tables etc, however I can't log in. Looking at the database and then around this forum, I realize that VB doesn't use just an md5 hash to encrypt the password. Does anyone know what algorithm VB uses in addition to md5, and if its available to the public?
If I can't obtain the algorithm they use, could I just make VB encrypt the password with md5 only? |
#2
|
||||
|
||||
If you only looked around for it......
PHP Code:
|
#3
|
|||
|
|||
is it possible that vb generate the password in the 3.6.7 version different?
--- my fault, you can delete it - sorry |
#4
|
|||
|
|||
So it md5s the password, uses the salt function on it, then md5s the whole thing? I got that, but where is the salt function itself?
|
#5
|
||||
|
||||
Look in the user table, there's a field called salt.
|
#6
|
|||
|
|||
Got it working again, thanks. The salt function vbulletin uses concats the salt to the end of the md5 hashed password, then md5 hashes it again, if anyone is curious.
|
#7
|
||||
|
||||
Which is exactly what I posted a few posts up.
PHP Code:
|
#8
|
|||
|
|||
Didn?t know exactly what .$salt did
|
#9
|
||||
|
||||
. (dot) is the concatenation character in PHP.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|