note 20877 added to function.crypt

From: Date: Fri, 19 Apr 2002 23:45:45 +0000
Subject: note 20877 added to function.crypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-29588@lists.php.net to get a copy of this message
If you're importing DES encrypted passwords from a unix or linux environment, it seems that it is necessary to use the first to characters as a salt, especially if you're working off of an old implementation of unix (in my case, DYNIX). All that aside -- be aware of users that use apostrophes in their passwords. Although they're rare, they will break php's crypt function -- and I have not found a way around it, except to use an external function that isn't fazed by apostrophes. MySQL is a great example of this. -- http://www.php.net/manual/en/function.crypt.php http://master.php.net/manage/user-notes.php?action=edit+20877 http://master.php.net/manage/user-notes.php?action=delete+20877 http://master.php.net/manage/user-notes.php?action=reject+20877

« previous php.notes (#29588) next »