hash_file Method
Calculates a message digest over data contained in a file.
Syntax
def hash_file(source_file: str) -> bytes: ...
Remarks
This method calculates and returns a message digest over the data contained in file SourceFile. This is a quick way to calculate a hash over a file content in one go.