import hashlib


def hash_password(password):
    """
    This function returns the generated hash for the password.
    :param password: String to hash.
    :return: Hash string.
    """
    return hashlib.sha256(password.encode()).hexdigest()