SqzHash is a custom cryptographic hash algorithm implementation designed to compute hash values for strings and files.
Project description
SqzHash
SqzHash is a custom cryptographic hash algorithm implementation designed to compute hash values for strings and files. The algorithm combines shifts, XOR operations, and the use of prime numbers to efficiently and reliably compute unique hash sums for various data types.
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}")
Project details
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 sqzhash-1.0.2.tar.gz.
File metadata
- Download URL: sqzhash-1.0.2.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ece5165f11be94c4463f5dad9cd3b51119347fca868bf90dc8477171b146955
|
|
| MD5 |
94061a3b23ebce2ab886a794131ef4ba
|
|
| BLAKE2b-256 |
038186077a9bca7ec3d50c52c16104dbda02276fc80ae88fb210bb7c603e77e4
|
File details
Details for the file sqzhash-1.0.2-py3-none-any.whl.
File metadata
- Download URL: sqzhash-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a5e51a5a04736e8ee0780bf22c87cf4d306688b18af49f4832994fe5877c18b
|
|
| MD5 |
8a04e191ad873e6082926b5730343ea1
|
|
| BLAKE2b-256 |
1365875fea6e572fac48c7440e55d92fa31b22e513bf6aac8a7c4af36e901cf2
|