def blake2bsum(filename): b2bhash = hashlib.blake2b(digest_size=32) try: return hashsum(b2bhash, filename) except FileNotFoundError: return ""