|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2017-10-16 12:38 UTC] phpdoc at mail dot my1 dot info
Description: ------------ In the input/output section of the argon2 standard, there is a key/secret value https://tools.ietf.org/html/draft-irtf-cfrg-argon2-03#page-5 and it is certainly not a bad idea to use that for peppering the passwords for extra security: https://en.wikipedia.org/wiki/Pepper_(cryptography) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
@requinix there is a parameter for argon2i ("Secret value K" in the linked document) which PHP does not expose. It *could* be exposed via a password hash option, however I am not qualified to have an opinion on whether it *should* be. Notably the $salt option for bcrypt was deprecated in 7 because the idea of the password_hash() API is simplicity and providing secure defaults, I don't know if this may fall into the same category of "things the user should not play with as it may make the resulting hashes less secure". I think what is being asked for is clear, whether it should be done is for people more qualified than me to discuss. I can't see any record if it being discussed as part of the original proposal. It should probably be brought up on internals.