Implement a basic hashing algorithm or explain how to securely store and verify user passwords.
For the coding portion, implement password verification using PBKDF2-HMAC-SHA256. The stored record contains an algorithm name, hexadecimal salt, iteration count, and hexadecimal digest. Return True only when the supplied password matches, and compare digests in constant time.
Function: def verify_password(password, record):
Input: a UTF-8 password string and a record dictionary.
Output: a Boolean indicating whether verification succeeds.
def verify_password(password, record):