Bug #68518 [Opn->Nab]: Error: 1-charater in salt on crypt()
| From: | requinix@php.net | Date: | Thu, 27 Nov 2014 23:01:27 +0000 |
| Subject: | Bug #68518 [Opn->Nab]: Error: 1-charater in salt on crypt() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-188822@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68518&edit=1
ID: 68518
Updated by: requinix@php.net
Reported by: r at inbox dot ru
Summary: Error: 1-charater in salt on crypt()
-Status: Open
+Status: Not a bug
Type: Bug
Package: *Encryption and hash functions
Operating System: Linux
PHP Version: 5.6.3
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
A one-character salt is not supported. crypt() should not have allowed it in the past and now it
properly returns failure (with "a string that is shorter than 13 characters and is guaranteed
to differ from the salt").
Previous Comments:
------------------------------------------------------------------------
[2014-11-27 17:34:37] r at inbox dot ru
Description:
------------
---
From manual page: http://www.php.net/function.crypt
---
Today i moved one script on server with php 5.6.3
Why crypt() on 5.6.3 does not working with 1-character salt ? But, on 5.4.22 all working.
Test script:
---------------
echo crypt("iz289q","i");
Expected result:
----------------
i$hos7IDHFpPk
Actual result:
--------------
*0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68518&edit=1