FAQ

[PHP-BUG] #45655 [NEW]: result of crypt() without salt is always empty

Iver at jackewitz dot de
Jul 29, 2008 at 1:09 pm
From: iver at jackewitz dot de
Operating system: ubuntu 8.04
PHP version: 5.2.6
PHP Bug Type: *Encryption and hash functions
Bug description: result of crypt() without salt is always empty

Description:
------------
Desc:
result of crypt() without salt is always empty

PHP-Version:
- 5.2.4
- 5.2.6

5.2.3 it's okay

Reproduce code:
---------------
echo(crypt('Hallo'));

Expected result:
----------------
1rwefw34rf2345wer # something like that
reply

Search Discussions

3 responses

  • Pajoye at Jul 29, 2008 at 1:44 pm
    ID: 45655
    Updated by: pajoye@php.net
    Reported By: iver at jackewitz dot de
    -Status: Open
    +Status: Feedback
    Bug Type: *Encryption and hash functions
    Operating System: ubuntu 8.04
    PHP Version: 5.2.6
    -Assigned To:
    +Assigned To: pajoye
    New Comment:

    It really depends of which libc you use, and if you have the right
    algorithm present. If MD5 and DES are not present, them it is expected.

    Please try using PHP 5.3 snapshot, all algorithms are now available, no
    matter which libc you use (or not).


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-07-29 13:09:18] iver at jackewitz dot de

    Description:
    ------------
    Desc:
    result of crypt() without salt is always empty

    PHP-Version:
    - 5.2.4
    - 5.2.6

    5.2.3 it's okay

    Reproduce code:
    ---------------
    echo(crypt('Hallo'));

    Expected result:
    ----------------
    1rwefw34rf2345wer # something like that



    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=45655&edit=1
  • Iver at jackewitz dot de at Jul 30, 2008 at 1:52 pm
    ID: 45655
    User updated by: iver at jackewitz dot de
    Reported By: iver at jackewitz dot de
    -Status: Feedback
    +Status: Closed
    Bug Type: *Encryption and hash functions
    Operating System: ubuntu 8.04
    PHP Version: 5.2.6
    Assigned To: pajoye
    New Comment:

    Well, it's not a PHP-Bug, but a php5-suhosin bug in the version 0.9.22.
    This bug is fixed in 0.9.23. see:
    http://www.hardened-php.net/suhosin/changelog.html


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-07-29 13:43:59] pajoye@php.net

    It really depends of which libc you use, and if you have the right
    algorithm present. If MD5 and DES are not present, them it is expected.

    Please try using PHP 5.3 snapshot, all algorithms are now available, no
    matter which libc you use (or not).

    ------------------------------------------------------------------------

    [2008-07-29 13:09:18] iver at jackewitz dot de

    Description:
    ------------
    Desc:
    result of crypt() without salt is always empty

    PHP-Version:
    - 5.2.4
    - 5.2.6

    5.2.3 it's okay

    Reproduce code:
    ---------------
    echo(crypt('Hallo'));

    Expected result:
    ----------------
    1rwefw34rf2345wer # something like that



    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=45655&edit=1
  • Pajoye at Jul 30, 2008 at 2:44 pm
    ID: 45655
    Updated by: pajoye@php.net
    Reported By: iver at jackewitz dot de
    -Status: Closed
    +Status: Bogus
    Bug Type: *Encryption and hash functions
    Operating System: ubuntu 8.04
    PHP Version: 5.2.6
    Assigned To: pajoye
    New Comment:

    You don't need suhosin extension anymore to solve crypt's issues (the
    patch itself is still fine) as we use the same blowfish implementation
    (from Solar Designer/openwall) and everything is enabled by default when
    the system is outdated. However it is still not a bug > bogus


    Previous Comments:
    ------------------------------------------------------------------------

    [2008-07-30 13:52:36] iver at jackewitz dot de

    Well, it's not a PHP-Bug, but a php5-suhosin bug in the version 0.9.22.
    This bug is fixed in 0.9.23. see:
    http://www.hardened-php.net/suhosin/changelog.html

    ------------------------------------------------------------------------

    [2008-07-29 13:43:59] pajoye@php.net

    It really depends of which libc you use, and if you have the right
    algorithm present. If MD5 and DES are not present, them it is expected.

    Please try using PHP 5.3 snapshot, all algorithms are now available, no
    matter which libc you use (or not).

    ------------------------------------------------------------------------

    [2008-07-29 13:09:18] iver at jackewitz dot de

    Description:
    ------------
    Desc:
    result of crypt() without salt is always empty

    PHP-Version:
    - 5.2.4
    - 5.2.6

    5.2.3 it's okay

    Reproduce code:
    ---------------
    echo(crypt('Hallo'));

    Expected result:
    ----------------
    1rwefw34rf2345wer # something like that



    ------------------------------------------------------------------------


    --
    Edit this bug report at http://bugs.php.net/?id=45655&edit=1

Related Discussions

Discussion Navigation
viewthread | post