import hashlib
import binascii


def verify_password(password, check_password):
    """ Verify stored password against given """
    salt = password[:64]
    stored_password = password[64:]
    pwdhash = hashlib.pbkdf2_hmac(
        "sha512",
        check_password.encode("utf-8"),
        salt.encode("ascii"),
        100000)
    pwdhash = binascii.hexlify(pwdhash).decode("ascii")
    return pwdhash == stored_password