A script to generate and validate MD5 hashes for files
MD5 checksums can be provided to ensure large files are downloaded correctly.
The method get_checksums will print out a list in the expected format that the script requires.
The method verify_checksums will iterate over the "expected" list, look for those files, and verify the checksum.
- To get the checksums of files, place this script in the root directory, and change the line under
if __name__ == "__main__":to callget_checksums() - Copy the output of the script in as the
expectedlist - change the line under
if __name__ == "__main__":to callverify_checksums() - Run the script to ensure output is correct.
- Done!