News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

smf 2.0 hash

Started by ColdCode, June 13, 2011, 10:44:14 PM

Previous topic - Next topic

ColdCode

Is it possible to create the sha1 hash (that is used for login) from the username and password?

Does it use a random salt?

burzum

#1
Good question. :( I'm also stuck with this and to be honest the SMF code is not the most readable and I really wish there would be unit tests for the code and hash building to look at...  ::)

I'm somewhat sure that you need the member_name, passwd and password_salt and combine them and hash them with sha1 but don't ask me about the order... There is also something done via JS but this should be not relevant for what at least I'm doing.

Read this http://www.simplemachines.org/community/index.php?topic=428103.msg3004163#msg3004163

I'm working on a plugin for CakePHP 2.0 that will allow your CakePHP based app to login using users from the forum for simple integration.


Advertisement: