Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: jsucupira on November 08, 2007, 03:36:25 PM

Title: reusing database password
Post by: jsucupira on November 08, 2007, 03:36:25 PM
I wanted to use the same password that my users use to register to logging on my website.  the problem is that the password is encrypted.  my question is, what kind of encryption does SMF uses to post the saved password to the database. if anyone knows. how can I verify that password from the database with PHP? thnx
Title: Re: reusing database password
Post by: H on November 08, 2007, 04:07:31 PM
Welcome to SMF! sha1 with the password and lowercase username

From the SMF source:

$current = sha1(strtolower('username') . 'password');