ID: 50093 Updated by: paj...@php.net Reported By: vitor dot reus at gmail dot com Status: Bogus Bug Type: *Encryption and hash functions Operating System: Windows & Linux PHP Version: 5.3.0 New Comment:
meant #50052, not #50093. Previous Comments: ------------------------------------------------------------------------ [2009-11-05 18:57:34] paj...@php.net Duplicate of #50093 and #49954, which are fixed in SVN. ------------------------------------------------------------------------ [2009-11-05 18:54:16] vitor dot reus at gmail dot com Description: ------------ I have tried to use the crypt function using a 1 char length salt in different servers and the output went different. When I use a 2 char length salt, the output is the same. The architecture of the servers who gave the different output is 32 bits, i think this could be a hint. Reproduce code: --------------- <?php echo CRYPT_STD_DES . CRYPT_EXT_DES . CRYPT_MD5. CRYPT_BLOWFISH."<br>"; echo crypt('1234','Z'); ?> Expected result: ---------------- Linux (several distributions) 64 bits: 1010 Z$pzJXrYhCQNg Actual result: -------------- Windows 32bit: 1010 Z$qZF7.jfwpCE Debian 5 32 bits: 1111 Z$qZF7.jfwpCE ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50093&edit=1