Skip to main content

Python bindings for the AxHash engine

Project description

axhash-python

Core Engine (Rust)

Crates.io Documentation Downloads

Extensions & Distribution

Python FFI Downloads Support me

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.8.tar.gz (24.9 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.8-cp39-abi3-macosx_11_0_arm64.whl (194.8 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for axhash_python-0.1.8.tar.gz
Algorithm Hash digest
SHA256 e08e0cfd5523d68d570f896f3aefb034f05512faacf2b36a19c8ad7cbd544b12
MD5 d72b777e9ef3107734cf1c862ae3860b
BLAKE2b-256 d97abe361acfaef44ed5d64f02ccf881d916d0d9b2be15fe83e4b0f11b5e5510

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for axhash_python-0.1.8-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0099608d17419d9ab2d012500f87af9b9a25f63d2844192b96f9b65eca628363
MD5 1e92ebb9673332e4401a72d4e00fdd83
BLAKE2b-256 c1c04383098fce99d772f4e1f99158b95eb6edf5762bb9d1e7e0d4c77d25c58d

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