rfm_hash

hep_rfm.rfm_hash(path)[source]

Use the SHA512 hash function to get the file ID of the file in the given path. This is achieved by reading the file in binary mode, evaluating the hash in chunks of 10 MB, adding them and converting the result to hexadecimal.

Parameters:path (str) – path to the file.
Returns:hexadecimal result of evaluating the hash function.
Return type:str