Premium SHA-67 Hashing Cryptographic Module in Rust
Project description
SHA-67 (six-seven)
Instead of SHA-256 or SHA-512, we got SHA-67 (six-seven).
It hashes your stuff into a 67-character string chosen from a custom 67-character alphabet. That's $67^{67}$ possible outcomes (which is a massive $\approx 406$ bits of cryptographic keyspace).
📥 How to Install
Just run:
pip install sha67
🐍 How to Use (Python)
1. Simple Hashing
Just import it and feed it any string or bytes. It returns a clean 67-character hash:
import sha67
# Hashing a string
print(sha67.sha67("hello world"))
# => eSLqb0RhwPJUAp.aT~tyb-60eLTKDeWIpgkg4PQH9HPDim.Y03gSwfPLwzw-CfZjVcp
2. Hash as a Giant Number
If you want the hash represented as a large Python integer modulo $67^{67}$:
print(sha67.sha67_int("hello world"))
3. Hashlib-style (Incremental)
If you want to feed data in chunks:
hasher = sha67.SHA67()
hasher.update("hello ")
hasher.update("world")
print(hasher.base67digest())
🦀 How to Use (Rust CLI)
If you compile the binary with cargo build --release, you can use it directly in your terminal like sha256sum:
# Hash a text string
./target/release/sha67 -s "hello world"
# Hash a file
./target/release/sha67 some_file.txt
# Stream from standard input
echo -n "hello" | ./target/release/sha67
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 sha67-0.1.2.tar.gz.
File metadata
- Download URL: sha67-0.1.2.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c51f764c513674ad67cf84582f4fe29ca672aebd0bf35c746e57a43a2e46f71
|
|
| MD5 |
7956128356ac98caa80c9c422fa9fbff
|
|
| BLAKE2b-256 |
42081130fb13a8d0b9e87d86c51c92ed9a7c895d12e02a59187bd38dfe21d7ac
|
File details
Details for the file sha67-0.1.2-cp37-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: sha67-0.1.2-cp37-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 242.8 kB
- Tags: CPython 3.7+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
123cdbca0b926ae01e60a87ac6c84657bab8c946fdc210ede5966f5789caacff
|
|
| MD5 |
0c7913478c3e65c5703b6b4f9d3e520d
|
|
| BLAKE2b-256 |
2edaddadabddb2f6a952977bb44725a516c0e6a4fec01ea64af2101d0981adb2
|