First store the password in the DB as 
$passwd=md5($passwd)
insert into table values(.... $passwd);

get the user password and check by comparing
if(md5($password)==$fetchedpasswdfromDB)
{
    ...
}

-murugesan

----- Original Message ----- 
From: "Chinmoy Barua" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 26, 2003 11:34 AM
Subject: [PHP] MD5 System Password check with PHP


> 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?
> 
> - Chinmoy
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to