note 20300 added to function.crypt

From: Date: Fri, 29 Mar 2002 08:55:36 +0000
Subject: note 20300 added to function.crypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-28366@lists.php.net to get a copy of this message
Regarding the comments above by icecube@fr.fm: It is *NOT* necessary (in my experience) to use the first two characters of your password as the salt in order to generate .htaccess-based authentication with DES (and in fact it seems rather silly to prefix a plain-text portion of the password to the encrypted value). At least that is what I've found in my experiments under Linux/Apache. If you're doing any matching yourself, just make sure you crypt() the match string using the same salt as the encrypted string. -- http://www.php.net/manual/en/function.crypt.php http://master.php.net/manage/user-notes.php?action=edit+20300 http://master.php.net/manage/user-notes.php?action=delete+20300 http://master.php.net/manage/user-notes.php?action=reject+20300

« previous php.notes (#28366) next »