A lightweight Python library for hashing text and files using multiple cryptographic algorithms.
Project description
PyHashKit
A lightweight Python library for hashing text and files using multiple cryptographic algorithms.
Features
- 🔐 Hash text strings
- 📄 Hash files of any size
- ⚡ Supports multiple algorithms
- 📦 Zero dependencies
- 🐍 Python 3.8+
- 🚀 Lightweight and fast
Supported Algorithms
PyHashKit supports any algorithm available through Python's built-in hashlib.
Common examples:
- SHA-256
- SHA-512
- SHA-224
- SHA-384
- MD5
- SHA-1
- SHA3-224
- SHA3-256
- SHA3-384
- SHA3-512
- BLAKE2b
- BLAKE2s
Installation
pip install PyHashKit
Quick Start
from pyhashkit import hash_text, hash_file
print(hash_text("Hello World"))
print(hash_file("example.txt"))
Python API
Hash Text
from pyhashkit import hash_text
result = hash_text("Hello World")
print(result)
Hash Text Using MD5
from pyhashkit import hash_text
result = hash_text(
"Hello World",
algorithm="md5"
)
print(result)
Hash File
from pyhashkit import hash_file
result = hash_file("example.txt")
print(result)
Hash File Using SHA-512
from pyhashkit import hash_file
result = hash_file(
"example.txt",
algorithm="sha512"
)
print(result)
Example Output
a591a6d40bf420404a011733cfb7b190
d62c65bf0bcda32b57b277d9ad9f146e
Project Structure
PyHashKit/
├── pyhashkit/
│ ├── __init__.py
│ ├── hashing.py
│ └── version.py
├── tests/
│ └── test_hashing.py
├── pyproject.toml
├── LICENSE
└── README.md
Contributing
Contributions, bug reports, and feature requests are welcome.
- Fork the repository
- Create a branch
- Make your changes
- Submit a pull request
Links
Homepage: https://github.com/Fmasterpro27/PyHashKit
Issues: https://github.com/Fmasterpro27/PyHashKit/issues
PyPI: https://pypi.org/project/pyhashkit/
License
Licensed under the Apache License 2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyhashkit-0.1.0.tar.gz.
File metadata
- Download URL: pyhashkit-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c59f23c1a1e6973adeddc97a349f6a1fefcee38538554c6ebe16ab1adc35ab67
|
|
| MD5 |
f8d1cf9df375e5fe169f00c43ec498a3
|
|
| BLAKE2b-256 |
508a0421dc83aa17abf6e5de67db4f9b73fd56067cd7e938aa1ac2a406aa0791
|
File details
Details for the file pyhashkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyhashkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
241999753b78443f7b45b466f52f22562a6da3a77d7b46344d18f0ab077e3fbe
|
|
| MD5 |
6e246a75dc693697ec4987f54d964f0d
|
|
| BLAKE2b-256 |
f9bdabc40b76c87844c5b47395d0350c83f652e4bf358f62cdcbfe929e2c70cc
|