def print_hashes(files):
    """Print the hashes of the given files."""
    header = f"{'MD5':<32} | {'SHA-1':<40} | {'SHA-256':<64} | {'Binary':<33} | {'Size':<20} | {'blake2b-256':<64}"
    line = "|".join(["-" * len(part) for part in header.split("|")])

    print(header)
    print(line)

    for file in sorted(files):
        md5 = compute_hash(file, hashlib.md5)
        sha1 = compute_hash(file, hashlib.sha1)
        sha256 = compute_hash(file, hashlib.sha256)
        name = Path(file).name.ljust(33)
        size = f"{Path(file).stat().st_size:,} Bytes".replace(",", " ").rjust(20)
        blake2b = compute_hash(file, hashlib.blake2b, digest_size=32)
        print(f"{md5} | {sha1} | {sha256} | {name} | {size} | {blake2b}")
Print the hashes of the given files.
winpython/hash.py