Re: MD5 System Password check with PHP

From: Date: Tue, 26 Aug 2003 06:13:03 +0000
Subject: Re: MD5 System Password check with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-160729@lists.php.net to get a copy of this message
On Tuesday, August 26, 2003, at 04:04 PM, Chinmoy Barua wrote:
Hello everybody, I want to authenticate my user from web with PHP script. The user's passwords are stored in System as MD5 format (in /etc/shadow). Can anybody help me?
Which part do you want help with? The form? The SQl query? The whole lot? My guess is the query $sql = " SELECT id FROM users WHERE username='.$_POST['username']}' AND password='".md5($_GET['password'])."'"; It (MD5) can also be done directly in the query as a MySQL function. Justin

« previous php.general (#160729) next »