May 2019
Intermediate to advanced
542 pages
13h 37m
English
Our file hasher utility will take a source directory, a destination file, and a number of threads to use. It will use the number of threads to calculate the MD5 hash of each file in the directory and then write the information out to the destination file as it does so.
A hashing function such as MD5 is used to calculate a unique, fixed-length binary value from any arbitrary piece of data. Hashes are often used to determine the authenticity of a file since any change to the file will result in a different hash value.
Make a clean copy of your Qt template from Chapter 4, Building Applications with QMainWindow, calling it hasher.py.
Then, we'll start with our GUI form class, as follows:
class HashForm(qtw.QWidget): submitted ...
Read now
Unlock full access