PHP 4.0 Bug #6844 Updated: Automtic salt for crypt() does not seem to work

From: Date: Fri, 03 Nov 2000 17:35:27 +0000
Subject: PHP 4.0 Bug #6844 Updated: Automtic salt for crypt() does not seem to work
Groups: php.dev 
Request: Send a blank email to php-dev+get-36997@lists.php.net to get a copy of this message
ID: 6844 Updated by: sniper Reported By: johanp@aditus.nu Status: Closed Bug Type: *Function Specific Assigned To: Comments: This is fixed in CVS now. --Jani Previous Comments: --------------------------------------------------------------------------- [2000-09-22 00:57:46] johanp@aditus.nu The following demonstrates the problem with automtic salt crypt() function. Note: There is a different behaviour here between 4.0.1pl2 and 4.0.2 not sure what can be considered correct. <?php $orgstr="abc123"; $cryptstr=crypt($orgstr); echo "orgstr=$orgstr, cryptstr=$cryptstr<p>"; echo "Salt length=".CRYPT_SALT_LENGTH."<p>"; ?> This will return the same $cryptstr no matter how many times you call the script. It seems like the automatic salt isn't generated for each call of crypt(). Not sure what the real behavious should be but it's diffrent from 4.0.1pl2 (My machine will use a DES crypt() so that the salt length is 2.) --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6844

« previous php.dev (#36997) next »