Page 1 of 1

PHP argon2i password

PostPosted: Mar 30th, '24, 16:43
by flink
How can I activate the argon2i password encryption for PHP?

Build PHP: --with-password-argon2

This is already installed:
lib64argon2_1 - The reference C implementation of Argon2​

However I need a PHP package for argon2i.

Re: PHP argon2i password

PostPosted: Mar 30th, '24, 19:48
by doktor5000
For one, you'd need to install the respective -devel package for lib64argon2_1
And you'd probably need to build your own php package with that enabled. See e.g. http://svnweb.mageia.org/packages/cauld ... rkup#l1525

Although you don't mention WHY you need that ?

Re: PHP argon2i password

PostPosted: Mar 30th, '24, 20:09
by flink
doktor5000 wrote:For one, you'd need to install the respective -devel package for lib64argon2_1
And you'd probably need to build your own php package with that enabled. See e.g. http://svnweb.mageia.org/packages/cauld ... rkup#l1525

:?
Will the PHP still work then? I hope I will not break everything.
Shouldn't Mageia's PHP have this already compiled into it? Argon2 is recommended by PHP.

doktor5000 wrote:Although you don't mention WHY you need that ?


TYPO3 login needs it.

Re: PHP argon2i password

PostPosted: Mar 30th, '24, 23:21
by doktor5000
You can also disable it: https://docs.typo3.org/m/typo3/referenc ... stall-tool

flink wrote:Shouldn't Mageia's PHP have this already compiled into it? Argon2 is recommended by PHP.

Well, nobody requested it yet via bugzilla.
And the default is also not argon2, it's bcrypt: https://www.php.net/manual/en/function. ... d-hash.php