note 29208 added to function.md5

From: Date: Thu, 06 Feb 2003 03:02:27 +0000
Subject: note 29208 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-43492@lists.php.net to get a copy of this message
I ran across an authentication script that uses MD5 for the password. I had never used it, so I looked it up. It still looks to me like you would want to use crypt($pass, $salt) for storing your passwords in your database table, and then use something like: $sql = "SELECT username FROM users WHERE username = '$user' AND password = 'crypt($pass, $salt)'"; to retreive it. -- http://www.php.net/manual/en/function.md5.php http://master.php.net/manage/user-notes.php?action=edit+29208 http://master.php.net/manage/user-notes.php?action=delete+29208 http://master.php.net/manage/user-notes.php?action=reject+29208

« previous php.notes (#43492) next »