note 19682 added to function.crypt

From: Date: Thu, 07 Mar 2002 15:53:53 +0000
Subject: note 19682 added to function.crypt
Groups: php.notes 
Request: Send a blank email to php-notes+get-27478@lists.php.net to get a copy of this message
To generate a .htaccess-based authentication with DES, you have to use the first two characters of your password as salt. $pass = "something"; $ht_pass = crypt($pass,substr($pass,0,2)); -- http://www.php.net/manual/en/function.crypt.php http://master.php.net/manage/user-notes.php?action=edit+19682 http://master.php.net/manage/user-notes.php?action=delete+19682 http://master.php.net/manage/user-notes.php?action=reject+19682

« previous php.notes (#27478) next »