PHP argon2i password

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

PHP argon2i password

Postby flink » Mar 30th, '24, 16:43

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.
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: PHP argon2i password

Postby doktor5000 » Mar 30th, '24, 19:48

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 ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: PHP argon2i password

Postby flink » Mar 30th, '24, 20:09

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.
flink
 
Posts: 207
Joined: Mar 3rd, '12, 19:23

Re: PHP argon2i password

Postby doktor5000 » Mar 30th, '24, 23:21

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18041
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron