02-09-2008, 12:40 AM
|
#9 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
Quote:
Originally Posted by Alan @ CIT
Just to throw another idea on to the pile, you could always take the vBulletin route and use Javascript to MD5() the password before you send it to your PHP script using one of the many javascript MD5 implementations available.
Alan
|
Now, why would you want to do that? JS can be easily sniffed, so don't check passwords and other sensitive information through JS. You can MD5 the password from the script, or directly from the query if you need to:
Code:
SELECT id FROM users WHERE username='username' AND password=MD5('password')
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|