Page 1 of 1

Changing the HASH for MD5

PostPosted: Mon Apr 02, 2012 9:09 am
by JGerrity
Hello,

I'm pointing WebAuction to a different user table than it's own (using a view, works well). Except the two systems appear to use a different HASH for MD5 encryption. Would it be possible to change WebAuctions encryption and decryption algorithm? I've looked through documentation and the wiki and search files like AuthenticatioTool.php and Serializer.php but can seem to find where WebAuction is encrypting and decrypting.

Is this possible and if so, where do I make the changes?

The hash used by the other system is:

Code: Select all
$hash[] = md5(md5(time() + time()) . sha1(time()));


To clarify, I'm looking to change WebAuction to only authenticate the user against the other user table NOT to edit passwords or update.

Thanks,
J.

Re: Changing the HASH for MD5

PostPosted: Mon Apr 02, 2012 9:55 am
by shannah
You will want to implement the password__serialize() method in the users table delegate class. This wiki article shows how to set up authentication against the PHPBB users table, which has a more complex hashing algorithm than the one you need to implement:
http://xataface.com/wiki/Authenticating ... sers_table

You should be able to use the exact same strategy.

-Steve