Re: CRYPT_SHA256 fails tests in trunk
| From: | Hannes Magnusson | Date: | Tue, 23 Aug 2011 09:31:02 +0000 |
| Subject: | Re: CRYPT_SHA256 fails tests in trunk | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-54820@lists.php.net to get a copy of this message | ||
2011/8/22 Solar Designer <solar@openwall.com>:
> On Mon, Aug 22, 2011 at 04:01:46PM +0200, Pierre Joye wrote:
>> On Mon, Aug 22, 2011 at 3:52 PM, Solar Designer <solar@openwall.com> wrote:
>> >> On Mon, Aug 22, 2011 at 3:05 PM, Pierre Joye <pierre.php@gmail.com> wrote:
>> >> > it seems that the changes break BC too, pls see
>> >> > https://bugs.php.net/bug.php?id=55477
>> >
>> > We may recommend to Christian to change $2a$ in existing hashes to $2x$ if
>> > the goal is to preserve compatibility for all old passwords despite of
>> > the security risk associated with doing so. The change as implemented
>> > in PHP 5.3.7+ favors security and correctness over backwards compatibility,
>> > but it also lets users (admins of PHP app installs) use the new $2x$
>> > prefix on existing hashes to preserve backwards compatibility for those
>> > and incur the associated security risk until all such passwords are
>> > changed (using $2a$ or $2y$ for newly changed passwords).
>> >
>> > No change to the PHP code is needed.
>>
>> Can you add this comment to the bug please? So every user reading it
>> will be informed. That's also something we have to document better.
>
> I just did - I added a more verbose comment, though. I think you may
> use this for documentation:
Added to http://php.net/security/crypt, and added a
link from the
release announcement and changelog.
(should show up in an hour or two).
-Hannes