Zend Framework Blog: Protecting passwords with Argon2 in PHP 7.2
On the Zend Framework blog today there's a new post from Enrico Zimuel showing you how you can use Argon2 password hashing in PHP applications (coming natively in PHP 7.2).
PHP 7.2 will be released later this year (2017). This version contains some interesting additions, including two new security features: support of the libsodium library.With these new features, PHP is the first programming language to adopt modern cryptography in its standard library.
In this article, we demonstrate the usage of the Argon2 password hash algorithm.
He then walks you through the installation of the pre-release version of PHP 7.2 and the argon2 library to get the environment up and running. He briefly talks about what the Argon2 hashing algorithm is and how to use it directly in PHP via the password_hash function. He also mentions the password_get_info function and shows what the result of inspection on an Argon2 application contains.