Current time: 08-02-2014, 04:29 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Adoptables Script
10-24-2009, 03:16 PM
Post: #1
PHP Adoptables Script
I wasn't sure where to post this, but I guess here will do.
I'm trying to integrate mybb with Rusnak PHP Adoptables.
I know very little PHP and so I'm having a hard time. I know that somehow there needs to be a way where the users tables are the same, I don't know how to go further, as the Adoptables script has MD5 password encoding and this uses a salt.
Any help here?
Find all posts by this user
Quote this message in a reply
10-25-2009, 02:40 AM (This post was last modified: 10-25-2009 02:42 AM by Dylan M..)
Post: #2
RE: PHP Adoptables Script
MyBB still uses MD5, its just a salted MD5. This is more secure.

I see you're part of the thread over on those forums about integration. I'm unfortunately tied up right now coding for someone else (at least a half dozen plugins), and I don't work for free either. If you're interested in hiring me you can PM me and we'll talk in more detail.

I'm curious though why there isn't already MyBB integration from them since their forum uses MyBB?
OOPS, I was going to mention that it won't require any massive table changes like you thought it would. Thats full integration, not bridging. And a well designed bridge can get you 95% or better of the functionality of a full integration, but with some impact (not noticeable to a human usually) on performance.

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
Quote this message in a reply
10-27-2009, 02:47 PM
Post: #3
RE: PHP Adoptables Script
Okay, that seems like a good sign for the integration.
I'm having some trouble on understanding the 'salt' part of everything. If anyone could explain that, I think that I'd be much closer to my goal. Smile
Find all posts by this user
Quote this message in a reply
10-27-2009, 03:11 PM
Post: #4
RE: PHP Adoptables Script
(10-27-2009 02:47 PM)Arianna Wrote:  Okay, that seems like a good sign for the integration.
I'm having some trouble on understanding the 'salt' part of everything. If anyone could explain that, I think that I'd be much closer to my goal. Smile

This is how MyBB salts its password:
md5(md5($salt).$password)

Basically that means you take the salt value from the db, md5 it, then append the password, and md5 the appended version.

So, if your salt was 5a5a you would have:
md5(md5('5a5a').$password)
And your $password was TestPasswd you would have:
md5(md5('5a5a').'TestPasswd')
Now, if md5('5a5a') resulted in 73v2tt9 (it doesn't) you would have:
md5('73v2tt9TestPasswd')
Which then if that resulted in 7sfv6309dwd7wsssa72 (again, it doesn't) you would have that value stored in the db for your password Smile

Any questions? Or was that clear enough?

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
Quote this message in a reply
11-19-2009, 02:56 PM
Post: #5
RE: PHP Adoptables Script
Yes, it was. Big Grin I guess I can /try/ and integrate it, though I think that it might be somewhat hard, as all users are already stored using MD5, with no salts.
I might have to try and see if there's something to do about that.
Find all posts by this user
Quote this message in a reply
11-19-2009, 03:13 PM
Post: #6
RE: PHP Adoptables Script
Blah maybe you can make some script that ads the salt to those users that only have a MD5 password. Otherwise you might have to change it hand by hand?
Visit this user's website Find all posts by this user
Quote this message in a reply
11-20-2009, 06:22 AM
Post: #7
RE: PHP Adoptables Script
I would guess that that would be the case. Isn't, however, the MD5 thing (the salt+typed in password) and then MD5'd. That means that (salt+already MD5 encoded password) wouldn't work.
Find all posts by this user
Quote this message in a reply
11-20-2009, 08:06 PM
Post: #8
RE: PHP Adoptables Script
(11-20-2009 06:22 AM)Arianna Wrote:  I would guess that that would be the case. Isn't, however, the MD5 thing (the salt+typed in password) and then MD5'd. That means that (salt+already MD5 encoded password) wouldn't work.

Correct, or at least close enough to correct to not matter. There would need to be some conversion/login linking.

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
Quote this message in a reply
11-20-2009, 08:10 PM
Post: #9
RE: PHP Adoptables Script
I guess that's going to be hard to do. xP
Find all posts by this user
Quote this message in a reply
11-20-2009, 08:34 PM
Post: #10
RE: PHP Adoptables Script
(11-20-2009 08:10 PM)Arianna Wrote:  I guess that's going to be hard to do. xP

Not really, if everyone is a member of the forum anyways, you can just dispense with the Adoptables passwords completely.

CodeWeavers - CrossOver: Windows Compatibility on Macintosh and Linux
[Image: Advocate_125.png]
Doesn't like unsolicited PMs
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication