wp_verify_fast_hash
wp_verify_fast_hash ( $message, $hash )
Parameters:- (string) message The plaintext message.
- (string) hash Hash of the message to check against.
Returns:- (bool) Whether the message matches the hashed message.
Defined at: - Introduced in WordPress: 6.8.0
- Deprecated in WordPress: —
Description
Checks whether a plaintext message matches the hashed value. Used to verify values hashed via wp_fast_hash().The function uses Sodium to hash the message and compare it to the hashed value. If the hash is not a generic hash,
the hash is treated as a phpass portable hash in order to provide backward compatibility for application passwords
which were hashed using phpass prior to WordPress 6.8.0.