sodium_crypto_pwhash_str_verify

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Verifies that a password matches a hash
<?php sodium_crypto_pwhash_str_verify(string $hash, string $password): bool