|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-11-05 18:57 UTC] pajoye@php.net
[2009-11-05 19:02 UTC] pajoye@php.net
[2009-11-05 19:16 UTC] vitor dot reus at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
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