Re: Adding a simple API for secure password hashing?
| From: | Anthony Ferrara | Date: | Wed, 20 Jun 2012 10:05:54 +0000 |
| Subject: | Re: Adding a simple API for secure password hashing? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-60901@lists.php.net to get a copy of this message | ||
Angel,
> I don't think the code is the most appropiate one, but I suppose that's
> not a final proposal.
Correct, it was just to fill out the interface a bit so that people
could play with it and see how the interface worked...
> The interfaces look good to me.
> I'd maybe set the default $algo to PASSWORD_DEFAULT_HASH or similar,
> being a value bumped on each next revisions.
Yeah, that's a good idea. Makes it easier to update without changing
the interface.
> I would consider preferable to have the $ ofpassword_register_algoprefix
> implicit.
That's fair.
Thanks,
Anthony