@classmethod
def hash_file(cls, hash_cls, key, filepath, **kwargs):
    """Return hash of data from file."""
    with open(filepath, 'rb') as f:
        return cls.hash_fileobj(hash_cls, key, f, **kwargs)
