charlesportwoodii / php-argon2-ext

PHP7 extension for Argon2
Other
33 stars 4 forks source link

Feature request: function argon2_needs_rehash #6

Closed sptndc closed 6 years ago

sptndc commented 6 years ago

Please add a function argon2_needs_rehash. Thanks

charlesportwoodii commented 6 years ago

argon2_needs_rehash isn't a Argon2 native function.

If you're using this library for password hashing, I strongly recommend that you migrate either to PHP 7.2 password_hash, or if you're on PHP 7.0 or 7.1 use Sodium 2.x instead, as it supersedes this library. sodium_crypto_pwhash_str_needs_rehash would be the method that you're looking for.