import hashlib


def file_sha256(src_file_path: str) -> str:
  """Calculate the SHA256 hash of the given file.

  Args:
    src_file_path: Path to the file to be hashed.

  Returns:
    SHA256 hash of the file in hex digest format.
  """
  sha256sum = hashlib.sha256()
  with open(src_file_path, "rb") as src_file:
    buf = src_file.read(65536)
    while buf:
      sha256sum.update(buf)
      buf = src_file.read(65536)
  return sha256sum.hexdigest()