Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88865 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97018 invoked from network); 18 Oct 2015 23:39:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2015 23:39:54 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.169 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.212.169 mail-wi0-f169.google.com Received: from [209.85.212.169] ([209.85.212.169:37385] helo=mail-wi0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 56/08-06385-9CD24265 for ; Sun, 18 Oct 2015 19:39:54 -0400 Received: by wicfv8 with SMTP id fv8so54804530wic.0 for ; Sun, 18 Oct 2015 16:39:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=PTmEkLMz9HaoUkk4/HkneWuqAYIxhU5nlAAFBOSdOuY=; b=He6rh1bYpvFm2wSsMDTn1k82I6sRxFmHbUSQf1EpJqOqZ/2vGxxCFxEsI2VJxElSPV XYwyMdZnLMiXi5HoZi6OtFfRRLu4CkGyvO9iLt8dFEGQiJG+Va4HCC6tBtGxwJQr0UrG hY/3hcExpvEBbJIMQ2Y5g369C9JWhlDRuhZDcvwnqO+//E2C2NX54exijxPZyDgzmoe/ l0t6se0gY9z/PCSSAQiifvnHwnYqujLNVYUALp3xslLz/TGTHv2ydjAjpnEQPKM+FML/ OPf6B7QEn6DcroyAgijfDFwQEj9E0s9+JbDVNNLToB+SYexAmsjE80XkNTxauG+l+/iq gMRA== X-Received: by 10.194.2.5 with SMTP id 5mr34089177wjq.153.1445211591378; Sun, 18 Oct 2015 16:39:51 -0700 (PDT) Received: from [192.168.1.27] (111.Red-83-58-47.dynamicIP.rima-tde.net. [83.58.47.111]) by smtp.gmail.com with ESMTPSA id r6sm24121217wia.0.2015.10.18.16.39.50 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 18 Oct 2015 16:39:50 -0700 (PDT) Message-ID: <56242DC5.7010306@gmail.com> Date: Mon, 19 Oct 2015 01:39:49 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: Anthony Ferrara CC: "internals@lists.php.net" References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Password_hash salt generation refactor From: keisial@gmail.com (=?UTF-8?B?w4FuZ2VsIEdvbnrDoWxleg==?=) On 19/10/15 00:59, Anthony Ferrara wrote: > I don't feel comfortable pulling against 7 this far into RC status. > Perhaps wait until after it goes gold? Or should this target 7.1? It's > not a big deal in either direction. Though it does add a side-effect, > where if it can't gather enough entropy it will throw an exception and > return failure (where prior it would simply make a "best effort". > > Thoughts? > > Anthony It's a clean patch. It doesn't really seem like a problem pulling it. Korvin wrote: > +1 for 7.0.x security patch release, best effort sounds scary. This is a salt. It doesn't need to be cryptographically secure. Using php_rand() there should pose no problem. I would actually include that into the patch (move old lines 154-156 into the FAILURE if).