Argon2 and compiling with the required library

In regards to Argon2, @patrick wrote...

Will Wappler automatically compile with this required library when we select Argon2 on a PHP 7.2 and higher project? Or is the compiling to the required library some extra step that we will need to do?

Thanks.

No it should be installed with your PHP distribution on your hosting.

We do not control the PHP version you have on your hosting.

See:

and maybe:
https://framework.zend.com/blog/2017-08-17-php72-argon2-hash-password.html

1 Like

Try running phpinfo()

Look for a section referring to “sodium” which i believe holds the Argon code

1 Like

Thanks, @George. I reviewed the linked articles, but just want to make sure I’m understanding correctly for my specific use case…

I create my Wappler projects using Wappler’s built in Docker tools and deploy them (via those built in Docker tools) to Digital Ocean.

So if I’ve created my Wappler project using PHP 7.2 or higher, will Argon2 automatically work on my live site after I deploy that Docker container to Digital Ocean? Or are there other things I have to do to get it to work?

Aha good one! I will check the Wappler docker images and update them if needed.

1 Like

It works. At least password hash.
I am using 7.3 via Docker.

2 Likes

Thanks, @JonL. You said “at least password hash”. Is there anything else to consider besides password hash that might not be working?

I haven’t got to verify and rehash, but if the password hash method works it means that the library is available and the rest should work. But before embarking on this process you might want to check the following thread.

https://community.wappler.io/t/security-login-and-argon2/18566/13

As I haven’t managed yet to log someone in using the newer cryptographic methods.

1 Like