SqzHash
SqzHash is a simple yet reliable 256-bit cryptographic hash algorithm designed for efficient computation of hash values. It employs shifts, XOR operations, and prime numbers to ensure robust hashing capabilities. SqzHash processes data in chunks, continuously updating its state to generate unique hash sums for strings and files, making it suitable for a wide range of applications.
Installation
You can install SqzHash using pip:
pip install sqzhash
Example Usage
Hashing a String
You can use the hash_string function to compute the hash of a string.
from sqzhash import hash_string
input_string = "example string"
hash_value = hash_string(input_string)
print(f"Hash value for the string is: {hash_value}")
Hashing a File
You can use the hash_file function to compute the hash of a file.
from sqzhash import hash_file
file_path = "path/to/your/file.txt"
hash_value = hash_file(file_path)
print(f"Hash value for the file is: {hash_value}")
Release files for sqzhash 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqzhash-1.0.4.tar.gz | 6.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqzhash-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / sqzhash-1.0.4.tar.gz
| Download URL | sqzhash-1.0.4.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54dbc56bded4c27ffbff3bf965d1537f93931e3df8168a67c099566e827a73b3
|
|
BLAKE2b-256 checksum How to use checksums |
1333094e1a85dd7a9e96f1f320c05b8a8e4aa3e5484b7f26c56ea8d3a52a3991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / sqzhash-1.0.4-py3-none-any.whl
| Download URL | sqzhash-1.0.4-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c372edc4dee3ff311276f713337c7bd51f960f837a55ee83a9c79b200594cb92
|
|
BLAKE2b-256 checksum How to use checksums |
dd7f572528b89debb209d545f13bd652580ae0179b71c396a48943b325fd9d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|