PDA

View Full Version : Query dotproj db to verify user & password


CSNerd
20-06-05, 06:55 AM
I'm trying to write a PHP script that verifies a dotproject user. The user enters their name and password and the script checks the username and password against whats stored in the dotproj database.

Now since dotproject encrypts the passwords...I don't know how to match the password the user enters against the encrypted password in the database. Is there a solution to this problem....is there some way to decrypt the password after retrieving it from the database and check it with given password. Or can I encrypt the password given and check that against the password stored in the database???

Thanks,
Katerina

caseydk
21-06-05, 08:53 PM
The password is stored in a MD5 hash which is not reversible...

Your best bet is to simply use the MD5() function to hash the password they give you.

CSNerd
22-06-05, 04:23 AM
Thanks... I will try that...

I appreciate your reply!

Katerina :-D