News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Comparing SMF hash password

Started by MuffinTastic, March 01, 2015, 02:32:21 AM

Previous topic - Next topic

MuffinTastic

I am making a login system for game servers and I want them to compare the user/pass input from an ingame command to the members' U/Ps in the forum via MySQL.

I already have connecting to MySQL and retrieving data via Python (the game server scripting language), etc.. but I'm not quite sure how the hashes are generated.

I saw in one post in the SMF 1.1.x support forum that it used to be
$hash = sha1(strtolower($username) . $password);
but of course that's outdated now.

Can someone please tell me how the hashes are put together nowadays?
Thanks in advance :)

Arantor


Advertisement: