Re: MD5 System Password check with PHP
| From: | murugesan | Date: | Tue, 26 Aug 2003 06:09:42 +0000 |
| Subject: | Re: MD5 System Password check with PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-160727@lists.php.net to get a copy of this message | ||
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" <chinmoysubarna@yahoo.com>
To: <php-general@lists.php.net>
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
>
>