iblutil.io.hashfile

File hashing functions Uses hashlib to perform either md5 or sha1 hashing in a memory controlled manner, with a progress bar for larger files.

Functions

blake2b

Computes blake2b hash in a memory reasoned way blake2b_hash = hashfile.blake2b(file_path)

md5

Computes md5 hash in a memory reasoned way md5_hash = hashfile.md5(file_path)

sha1

Computes sha1 hash in a memory reasoned way sha1_hash = hashfile.sha1(file_path)

blake2b(file_path, *args, **kwargs)[source]

Computes blake2b hash in a memory reasoned way blake2b_hash = hashfile.blake2b(file_path)

md5(file_path, *args, **kwargs)[source]

Computes md5 hash in a memory reasoned way md5_hash = hashfile.md5(file_path)

sha1(file_path, *args, **kwargs)[source]

Computes sha1 hash in a memory reasoned way sha1_hash = hashfile.sha1(file_path)