2.1.22.8.6. cli.helpers.misc.get_sha256_file_hash_str

cli.helpers.misc.get_sha256_file_hash_str(file_path: Path, buffer_size: int = 65536) str

Return the hexadecimal SHA256 hash string of a file.

Parameters:
  • file_path – Path to the file to hash.

  • buffer_size – Buffer size for reading the file.

Returns:

Hexadecimal SHA256 hash string.

Return type:

str