Re: password_hash() deprecate salt option - thoughts?

From: Date: Tue, 31 Mar 2015 20:02:26 +0000
Subject: Re: password_hash() deprecate salt option - thoughts?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-85602@lists.php.net to get a copy of this message
> On 31 Mar 2015, at 21:32, Christoph Becker <cmbecker69@gmx.de> wrote: > > Nicolas Oelgart wrote: > >>> On 31 Mar 2015, at 20:49, Anthony Ferrara <ircmaxell@gmail.com> wrote: >>> >>> 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. >> >> +1 >> >> I'd even go as far as adding a big red warning about custom salts to the manual page. > > FWIW, there is already the following note: > > | Caution It is strongly recommended that you do not generate your own > | salt for this function. It will create a secure salt automatically > | for you if you do not specify one. > > -- > Christoph M. Becker > Yeah, I’m aware. But I don’t think it’s enough. I’d suggest moving it further to the top, and making it red. As Anthony’s research shows, the current note is not enough. People are still doing it wrong. — Nico

« previous php.internals (#85602) next »