php / php-src

The PHP Interpreter
https://www.php.net
Other
37.57k stars 7.69k forks source link

Argon2 hashing using OpenSSL #12701

Open GrahamCampbell opened 7 months ago

GrahamCampbell commented 7 months ago

Description

I think Argon2 hashing is currently powered by libsodium, but OpenSSL 3.2 now supports this, too. It would be awesome to have the option to use OpenSSL instead at configure time.

bukka commented 7 months ago

It's actaully using libargon2 if you are talking about password_hash? Libsodium has got its own implementation.

I think it seems like a good idea to allow loading that from OpenSSL if supported.

bukka commented 7 months ago

Will leave label for both extensios - there is definitely work in standard and then it depends on implementation if the code changes will be also in ext openssl (think it would be probably cleaner in that way).

remicollet commented 3 months ago

I miss this old one, so #13514 is a duplicate

Implementation done in #13635