colour.utilities.hash_sha256#

colour.utilities.hash_sha256(filename: str, chunk_size: int = 2**16) str[source]#

Compute the SHA-256 hash of given file.

Parameters:
  • filename (str) – File to compute the hash of.

  • chunk_size (int) – Chunk size to read from the file.

Returns:

SHA-256 hash of the file.

Return type:

str