Password Encryption

Discussion forum for MOD Writers regarding MOD Development.
Locked
kevincon
Registered User
Posts: 27
Joined: Sat Jul 26, 2008 10:28 pm

Password Encryption

Post by kevincon »

Being specific, How can i convert the phpbb password encryption to md5?
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51879
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Password Encryption

Post by stevemaury »

It is MD5, but salted. You can put an MD5 password into the phpbb database and it will work. It will get salted, though. What are you trying to do?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
kevincon
Registered User
Posts: 27
Joined: Sat Jul 26, 2008 10:28 pm

Re: Password Encryption

Post by kevincon »

Well i put an md5 password into the database and it didn't work.

And i'm using a game engine that only supports md5 (source engine).
and when my users register via game it encrypts it as md5.
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51879
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Password Encryption

Post by stevemaury »

If you put an MD5 in the database and use it to login to phpbb, it works. If you try to pass it to some other application that is expecting and MD5, it won't work, because it gets salted.

So, what are you trying to do?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
kevincon
Registered User
Posts: 27
Joined: Sat Jul 26, 2008 10:28 pm

Re: Password Encryption

Post by kevincon »

I'm doing the web side of a Garry's Mod gamemode.

The gamemode is http://pirateshipwars.com/

It runs off the half life 2 engine.

And basically users pay on the website, and i want to integrate my wip site into phpbb.
User avatar
EXreaction
Former Team Member
Posts: 5666
Joined: Sun Aug 21, 2005 9:31 pm
Location: Wisconsin, U.S.
Name: Nathan

Re: Password Encryption

Post by EXreaction »

The password doesn't just get salted. It does 2048 iterations of md5($hash . $password) after md5($salt . $password).

If you can be a bit more specific on what it needs to do we can possibly figure out a way to get it working. Do you need it setup so the game engine can check your database for the users or just to have it register users on your board after they register via the game?
Locked

Return to “[3.0.x] MOD Writers Discussion”