sodium_crypto_pwhash_scryptsalsa208sha256_str_verify

Supported Versions: PHP 7 >= 7.2.0, PHP 8
Verify that the password is a valid password verification string
<?php sodium_crypto_pwhash_scryptsalsa208sha256_str_verify(string $hash, string $password): bool