ID: 50093 User updated by: vitor dot reus at gmail dot com 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:
I think its #49954 and #50052, becouse the same wrong output occours in windows + php 5.2.10 and linux + php 5.3 Previous Comments: ------------------------------------------------------------------------ [2009-11-05 19:02:13] [email protected] meant #50052, not #50093. ------------------------------------------------------------------------ [2009-11-05 18:57:34] [email protected] 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
