Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85598 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68042 invoked from network); 31 Mar 2015 19:13:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2015 19:13:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=nicoswd@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nicoswd@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.176 as permitted sender) X-PHP-List-Original-Sender: nicoswd@gmail.com X-Host-Fingerprint: 209.85.212.176 mail-wi0-f176.google.com Received: from [209.85.212.176] ([209.85.212.176:34821] helo=mail-wi0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/02-54064-4F1FA155 for ; Tue, 31 Mar 2015 14:13:57 -0500 Received: by widdi4 with SMTP id di4so20501239wid.0 for ; Tue, 31 Mar 2015 12:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:references:in-reply-to:to; bh=FNYNHD3CC4HuGMLFAN23wc9NuAfbfeR/Yf96K+DV5nM=; b=wmSyGaUWt3LnkWdHSlCOIzEPb6kLOvhXzMVY8mHGnZKFBIyB3ONjqr9brnh3e5hj7w yeBHC0mNAh07aJe1yCuF+JE8dwDNN3f2MOW2gbKY8Lfy84UC/ZE7JYfLTOGlFBZos8bI SPP5j5EZZmALSVD4to6z6RCwoxo4yzF2VcbZNyEhbs8PqDaXXB6w02hXjQqj5CGU8QH3 SCxevX36SQN0p0qo+n0TJbXH32ecE+Acbyn5oqgvuSpsPqvSzhC3FOSEkgTm0o/DkP6Q 5IFRFX8qo/KZsdfmMKl+40/Vn1d4G6qEUyOiRrZAAhVPBQtbws3CdJsLd6VVsAjGxjn8 PgXQ== X-Received: by 10.180.89.34 with SMTP id bl2mr8194268wib.23.1427829233346; Tue, 31 Mar 2015 12:13:53 -0700 (PDT) Received: from [10.160.90.242] (90.Red-176-83-32.dynamicIP.rima-tde.net. [176.83.32.90]) by mx.google.com with ESMTPSA id g8sm21532752wiy.19.2015.03.31.12.13.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 31 Mar 2015 12:13:52 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Message-ID: <0CB1052E-0245-406D-8CF0-83E0D75CD049@gmail.com> Date: Tue, 31 Mar 2015 21:13:50 +0200 References: In-Reply-To: To: "internals@lists.php.net" X-Mailer: iPhone Mail (12D508) Subject: Re: [PHP-DEV] password_hash() deprecate salt option - thoughts? From: nicoswd@gmail.com (Nicolas Oelgart) > On 31 Mar 2015, at 20:49, Anthony Ferrara wrote: >=20 > All, >=20 > Ever since we introduced password_hash() in 5.5, I've been watching > its usage as much as possible. I've setup google alerts and such, as > well as auditing implementations I've found on github to try to > understand how it's used. >=20 > One thing has become abundantly clear to me: the salt option is > dangerous. I've yet to see a single usage of the salt option that has > been even decent. Every usage ranges from bad (passing mt_rand() > output) to dangerous (static strings) to insane (passing the password > as its own salt). >=20 > I've come to the conclusion that I don't think we should allow users > to specify the salt. The crypt() API still exists if users have a need > to generate their own salt. Having it in the simplified API is simply > adding a risk factor without any significant justification. >=20 > So I'd like to hear your thoughts about raising E_DEPRECATED when the > salt option is specified in 7.0, with ultimately removing the option > in a later version. >=20 > Additionally, I know this is after the RFC freeze deadline, so if you > want to postpone the deprecation to 7.1, that's fine. I just think > it's worth discussion (and if there's consensus to put it in 7.0, then > great). >=20 > Thanks, >=20 > Anthony >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php +1 I'd even go as far as adding a big red warning about custom salts to the man= ual page.=20=