Re: [RFC][DISCUSSION] Argon2 Password Hash
| From: | Tom Worster | Date: | Fri, 05 Aug 2016 15:14:35 +0000 |
| Subject: | Re: [RFC][DISCUSSION] Argon2 Password Hash | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94860@lists.php.net to get a copy of this message | ||
On 8/5/16, 10:49 AM, "Charles R. Portwood II"
<charlesportwoodii@ethreal.net on behalf of charlesportwoodii@erianna.com>
wrote:
>I think for clarity, PASSWORD_ARGON2I would be sufficient. What are your
>thoughts?
Looks good.
>The rationale for providing defaults is to ensure the password_*
>functions remain easy to use.
I understand. I was actually suggesting that we deliberately make it
harder to use!
> Assuming that at some point PASSWORD_ARGON2I (or any new algorithm)
>would become PASSWORD_DEFAULT, the end user's expectations would be that
>password_hash($password, PASSWORD_DEFAULT) just works, without needing to
>specify additional arguments.
I agree entirely. I'm not against introducing default cost constants. I am
instead proposing we allow a period of time after introduction of Argon2
into PHP before deciding what the default costs should be and define the
constants at the same time as setting PASSWORD_DEFAULT = PASSWORD_ARGON2I,
or possibly before.
Please reread my previous message for the reasons behind this (odd, I
admit) idea.
Tom