HashGenerator 🔒
HashGenerator is a simple Python package to calculate the hash of a file using various hashing algorithms.
Installation ⚙️
To install the package, use pip:
pip install HashGenerator
Usage 🚀
Here's how you can use the HashGenerator package to calculate file hashes:
from HashGenerator import calculate_hash
# Calculate SHA-256 hash
hash_value = calculate_hash('path/to/your/file.txt', 'sha256')
print(f"SHA-256: {hash_value}")
# Calculate MD5 hash
hash_value = calculate_hash('path/to/your/file.txt', 'md5')
print(f"MD5: {hash_value}")
# Calculate SHA-512 hash
hash_value = calculate_hash('path/to/your/file.txt', 'sha512')
print(f"SHA-512: {hash_value}")
Supported Algorithms 🔐
The following hashing algorithms are supported:
- md5
- sha1
- sha224
- sha256
- sha384
- sha512
Example 💡
Here's an example of how to use the HashGenerator package:
from HashGenerator import calculate_hash
file_path = 'example.txt'
algorithm = 'sha256'
hash_value = calculate_hash(file_path, algorithm)
print(f"The {algorithm} hash of the file is: {hash_value}")
Metadata
Release files for HashGenerator 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| HashGenerator-1.0.1.tar.gz | 2.3 kB | Without provenance | Details for HashGenerator-1.0.1.tar.gz |
Release files / HashGenerator-1.0.1.tar.gz
| Download URL | HashGenerator-1.0.1.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e69b9e90782d63d9132e8242e0f0de292b15d4d30e5653e7bc2031621895362
|
|
BLAKE2b-256 checksum How to use checksums |
bdae468f1d9423725e9bc02726640141aef7c68ad910422e0c3a163f3906e91d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.11
|
Security for HashGenerator 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.