ID: 50093
Updated by: [email protected]
Reported By: vitor dot reus at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: *Encryption and hash functions
Operating System: Windows & Linux
PHP Version: 5.3.0
New Comment:
Duplicate of #50093 and #49954, which are fixed in SVN.
Previous Comments:
------------------------------------------------------------------------
[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