Skip to main content

SqzHash is a custom cryptographic hash algorithm implementation designed to compute hash values for strings and files.

Project description

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}")

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

sqzhash-1.0.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqzhash-1.0.4-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file sqzhash-1.0.4.tar.gz.

File metadata

  • Download URL: sqzhash-1.0.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for sqzhash-1.0.4.tar.gz
Algorithm Hash digest
SHA256 54dbc56bded4c27ffbff3bf965d1537f93931e3df8168a67c099566e827a73b3
MD5 969da63a859165b27b5e083ac8f16881
BLAKE2b-256 1333094e1a85dd7a9e96f1f320c05b8a8e4aa3e5484b7f26c56ea8d3a52a3991

See more details on using hashes here.

File details

Details for the file sqzhash-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: sqzhash-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for sqzhash-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c372edc4dee3ff311276f713337c7bd51f960f837a55ee83a9c79b200594cb92
MD5 36d0955845baf7220042168223d4be7c
BLAKE2b-256 dd7f572528b89debb209d545f13bd652580ae0179b71c396a48943b325fd9d74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page