Skip to main content

Python bindings for the AxHash engine

Project description

axhash-python

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 seed
  • axhash_seeded(data: bytes, seed: int) -> int — Hash dengan seed custom
  • runtime_backend() -> str — Info backend yang dipakai
  • runtime_has_aes() -> bool — Deteksi akselerasi AES
  • Hasher(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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

axhash_python-0.1.3.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

axhash_python-0.1.3-cp39-abi3-macosx_11_0_arm64.whl (194.5 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

Details for the file axhash_python-0.1.3.tar.gz.

File metadata

  • Download URL: axhash_python-0.1.3.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.13.1

File hashes

Hashes for axhash_python-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d48081a5723171bd88ded46a47162f42bad89746c9b10eab6e6182a3fac6830d
MD5 8d36b713155d1b285658c1f2844114b6
BLAKE2b-256 40ac16ec8f3e0f0cec2bbd61a2bf5e6de31a6411d796cbe1c71c0adb04028cf7

See more details on using hashes here.

File details

Details for the file axhash_python-0.1.3-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for axhash_python-0.1.3-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3f568a4d376265e9caead8707c880bdbe2dba0a498f99cf9f5a4ded7b9e508e7
MD5 7495ebc16fca2eafacf854ce145484ac
BLAKE2b-256 a5dd595ba4d3e499ce48f79922c2505ef349a72a742e09eb6318f36f90bf4813

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