Skip to main content

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

  • Install with pip install md5-checksum-verifier

Functions:

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:

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")

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

MD5 Checksum verifier-0.1.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

MD5_Checksum_verifier-0.1.3-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file MD5 Checksum verifier-0.1.3.tar.gz.

File metadata

  • Download URL: MD5 Checksum verifier-0.1.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for MD5 Checksum verifier-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64152e9a57611c551477b7a6ba49a6fbf1c57882f4613b0bbc44d72aa80a56d5
MD5 5836e3ba66f63b45d67bbeb78c1f33ff
BLAKE2b-256 3eb39a37b7925d0d8165b6076f13ea7a1b139ec3df215e35c38351fe47c954d3

See more details on using hashes here.

File details

Details for the file MD5_Checksum_verifier-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: MD5_Checksum_verifier-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for MD5_Checksum_verifier-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 30709494e9aab8662e397e4b9993d245ede963723aadbf8e90727d7cf7e4ff76
MD5 7a7ec14612d29fbde79cb71f28543de5
BLAKE2b-256 fd20e8628b38da3cfc063f5b3f0803c6b87fce1d569731d1af74b4c6788cd1e5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page