vBulletin Modifications

How vB creates the password hash?

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 07-09-2005, 12:44 AM   #1
vB Newbie
Join Date: Dec 2004
Fedalto is on a distinguished road

Default How vB creates the password hash?

I have a problem... i'm building a system which runs besides vBulletin, and the user has to login there again... but i cant find how vBulletin generates the password in the database..

i tried md5($password), md5(md5($password))... but they didnt work..

anyone can help me?

thanks a lot




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07-09-2005, 06:29 AM   #2
vBulletin Guru
Arnoud's Avatar
Join Date: Nov 2004
Real Name: Arnoud Kuipers
Location: Europe, Flanders
Arnoud is on a distinguished road

Default

Here's an example from php.net:

You must first be a registered member to view any code.
As you can see, the md5(); function does indeed work as you tried, I'm just guessing you applied it wrong.

If you want, you can post the bit of code you're working on, so we can help you out.

(md5 explained at php.net)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2005, 11:04 AM   #3
vB Newbie
Join Date: Dec 2004
Fedalto is on a distinguished road

Default

thx for the help, but thats not exactly what i want..
i mean, the user must login in my system with the same user and same password that he logs in vB forum...
but for example, my password is "123456".. i use md5("123456") but the result doesnt match with the password in vBulletin "user" table.... i think vbulletin use a "combo of md5s" like md5(md5(md5("123456"))), but that doesnt work...

i wanna know exactly what vBulletin does with my password to generate the hash in the database




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2005, 11:35 AM   #4
Charter Member
Sphinx's Avatar
Join Date: Jul 2004
Sphinx is on a distinguished road

Default

if you want to take a look at login.php and also register.php in your vbb files, you will find out how vb creates a unique salt and stores it in the user table corresponding to each user, and applies that salt along with a stored md5 hash to verify the user account login. maybe this will point you in the right direction..

--Sphinx




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-09-2005, 01:27 PM   #5
vB Newbie
Join Date: Dec 2004
Fedalto is on a distinguished road

Default

oh... now i realize...

echo md5(md5($password) . $salt);

thanks a lot for the help sphinx




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enable/Disable many settings in vb {custom and default}. Version 2.1 Developer vBulletin 3.5 / 3.6 Hack Releases 16 11-18-2006 09:55 PM
Automatic send forum password after accept rules JollyJack vBulletin Modification Requests 3 08-17-2006 09:24 PM
Us there something like this for vB 3.5.x mant3ra vBulletin Modification Requests 0 11-27-2005 06:27 PM
Combine yahoogroups list with vB forum laureen vBulletin Modification Requests 0 08-02-2005 12:48 AM


All times are GMT -3. The time now is 06:21 PM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)