Re: [DRAFT RFC] Adding Simplified Password Hashing API
| From: | Pierre Joye | Date: | Wed, 27 Jun 2012 12:12:56 +0000 |
| Subject: | Re: [DRAFT RFC] Adding Simplified Password Hashing API | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60990@lists.php.net to get a copy of this message | ||
hi,
On Wed, Jun 27, 2012 at 1:49 PM, Gustavo Lopes <glopes@nebm.ist.utl.pt> wrote:
> Em Wed, 27 Jun 2012 13:37:50 +0200, Pierre Joye <pierre.php@gmail.com>
> escreveu:
>
>
>> That's exactly what I meant, having a changing default in this may
>> force code change during php updates. I'm not in favour of having such
>> default.
>>
>
> This would not require any code changes after updates.
>
> As I understand, hashes computed with the old default method could still be
> checked without any modification as the hash itself stores information about
> the method.
That's only about one relatively simple use case where only PHP would
be involved or crypt-like implemenation. For any other and rather
common cases, it won't. I do not think a default should be implemented
and actually let the user knows what he uses and what he is doing.
That's one argument after all and clears all possible caveats.
Cheers,
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org