Metadata-Version: 2.1
Name: MD5-Checksum-verifier
Version: 0.1.2
Summary: MD5 Hash (checksum) verification tool
Home-page: https://github.com/dudeisbrendan03/hash-verifier
Author: Brendan T D. Jennings
Author-email: jbrendan70@outlook.com
License: LICENSE
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

This is used to check files stored with the hash from the internet

- Install with `pip install md5-checksum-verifier`
____________
Functions:
```python
from hash-tool import verifytool
verifytool.validHash('md5-hash-here')#this will return True when a hash is valid, and false if invalid (this just checks if it is in the format of an md5 hash)
verifytool.genhash('filenamehere')#this will generate and return the hash of a file
verifytool.validate('hash','original file source via the internet')
```

Example use:
```python
from hash-tool import verifytool
try:
    localFile=verifytool.genhash('text.txt')#generates and stores the hash
    if verifytool.validHash(localFile) == True:
        try:
            if verifytool.validate(localFile,'https://web.org/test-original.txt') == True:
                print("File has not been tampered with")
        except:
            print("Invalid hash - file may have been tampered with")
    else:
        print("Issue generating hash")
except:
    print("Issue generating hash")
```

