Skip to main content

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)

Source distribution for sqzhash 1.0.4
File Size Uploaded
sqzhash-1.0.4.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sqzhash 1.0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page