Python bindings for the AxHash engine
Project description
axhash-python
Core Engine (Rust)
Extensions & Distribution
Binding Python untuk engine AxHash, dibangun langsung di atas axhash-core menggunakan PyO3. Mudah digunakan untuk kebutuhan hash cepat di ekosistem Python.
Instalasi
Build wheel (butuh Rust dan maturin):
maturin build --release
# atau untuk pengembangan
maturin develop
Install wheel hasil build:
pip install target/wheels/axhash_python-*.whl
API Utama
axhash(data: bytes) -> int— Hash cepat tanpa seedaxhash_seeded(data: bytes, seed: int) -> int— Hash dengan seed customruntime_backend() -> str— Info backend yang dipakairuntime_has_aes() -> bool— Deteksi akselerasi AESHasher(seed: int = 0)— Streaming hash (update/incremental)
Contoh Penggunaan
import axhash_python as axhash
# Hash langsung
print(axhash.axhash(b"hello"))
print(axhash.axhash_seeded(b"hello", 0x1234))
# Streaming hash
h = axhash.Hasher(seed=0x1234)
h.update(b"data1")
h.update(b"data2")
print(h.digest())
# Info runtime
print(axhash.runtime_backend())
print(axhash.runtime_has_aes())
Lisensi
MIT. Bebas digunakan untuk open source maupun komersial.
Project details
Release history Release notifications | RSS feed
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 axhash_python-0.1.6.tar.gz.
File metadata
- Download URL: axhash_python-0.1.6.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa8c2de98948cb6108b0b1f8268222e37b435459180d547d6fa55db7af1d689a
|
|
| MD5 |
37148d1075a9024016af94c890385060
|
|
| BLAKE2b-256 |
7cf344476b84133f9e1528273df7a53068347dad9c95fa4bf357a636e31f98c2
|
File details
Details for the file axhash_python-0.1.6-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: axhash_python-0.1.6-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 194.8 kB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fe8f5bcae77cbf2a52b8dc9ecc3ccadd015aa7b8f3c4c2aade7c456aa95f676
|
|
| MD5 |
00cb27df2f46fedee0b999b8fe7f2e50
|
|
| BLAKE2b-256 |
fb297202c595ac811380421aad6c352e7787fa8dde862cf385a8c81535a86e37
|