dtoolcore.filehasher¶
Module for generating file hashes.
-
class
dtoolcore.filehasher.
FileHasher
(hash_func)[source]¶ Class for associating hash functions with names.
-
dtoolcore.filehasher.
hashsum_digest
(hasher, filename)[source]¶ Helper function for creating hash functions.
See implementation of
dtoolcore.filehasher.shasum()
for more usage details.
-
dtoolcore.filehasher.
hashsum_hexdigest
(hasher, filename)[source]¶ Helper function for creating hash functions.
See implementation of
dtoolcore.filehasher.shasum()
for more usage details.
-
dtoolcore.filehasher.
md5sum_digest
(filename)[source]¶ Return digest of MD5sum of file.
Parameters: filename – path to file Returns: shasum of file
-
dtoolcore.filehasher.
md5sum_hexdigest
(filename)[source]¶ Return hex digest of MD5sum of file.
Parameters: filename – path to file Returns: shasum of file