Latest News:
Latest Mods: Latest Tutorials:


 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mybb's Login System..
Author Message
crzyone9584
Junior Member


Posts: 12
Joined: May 2011
Reputation: 0
Post: #1
Mybb's Login System..
Im not great with php but I would like to know how the login system work. Is it just a basic md5 encryption for the password? I'm trying to integrate the login system with an asp.net application and all i need is the login system. Any help with how the login system works would be great. If I can't get the login system to work I'll just make my own but since the asp.net system is for the same site i use for mybb on just for a different feature, I really don't want my users to have to login into two different systems.
05-20-2011, 07:40 AM
euantor
Posting Freak



Posts: 877
Joined: Jun 2009
Reputation: 6
Post: #2
RE: Mybb's Login System..
The password is made up of an md5 hashed salt, followed by an md5 hashed version of the actual password. This string is then all hashed. Maybe the following code example will help:

PHP Code:
$password md5md5($salt) . md5($user['password']) ); 

This isn't an exact example from the MyBB code, but that's how it works in essence Hopefully it helps.
05-20-2011, 12:55 PM
crzyone9584
Junior Member


Posts: 12
Joined: May 2011
Reputation: 0
Post: #3
RE: Mybb's Login System..
I really havent had time to look but is the salt different for every user? if so is it stored in the database for that user? If so I'd basically only have to pull the salt with a query then md5 it then md5 the password and the login should work correct?
05-20-2011, 09:59 PM
euantor
Posting Freak



Posts: 877
Joined: Jun 2009
Reputation: 6
Post: #4
RE: Mybb's Login System..
Yeah, it's stored in the mybb_users table (in an md5 hashed format) along with an md5 hash of the password But yes, that should be correct - especially if you're following my quick example.
05-21-2011, 12:53 AM
 




User(s) browsing this thread: 2 Guest(s)