hash_file

sunpy.util.hash_file(path)[source]

Returns the SHA-256 hash of a file.

Parameters

path (str) – The path of the file to be hashed.

Returns

str – SHA-256 hash of the file.

References