Metadata-Version: 2.4
Name: neva256-native
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Topic :: Security :: Cryptography
Summary: NEVA-256 native accelerator (Rust/PyO3) — experimental cipher, NOT for production secrets
Keywords: cipher,experimental,native,rust,pyo3
Author: EWX-AI
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://github.com/ewxai/ewxai

# neva256-native — NEVA-256 Rust accelerator

Native (Rust/PyO3) backend for the [`neva256`](https://pypi.org/project/neva256/)
Python package. Bit-exact with the TypeScript and pure-Python implementations,
roughly 1000× faster than pure Python, with the GIL released during compute.

> ⚠️ EKSPERIMENTAL — NEVA belum pernah dianalisis kriptografer. Jangan pakai
> untuk data rahasia sungguhan; gunakan AES-256-GCM/libsodium.

## Instalasi

Biasanya tidak perlu dipasang manual — cukup:

```bash
pip install neva256[fast]
```

atau:

```bash
pip install neva256-native
```

Paket Python `neva256` otomatis memakai backend native ini bila tersedia dan
jatuh kembali ke pure Python kalau tidak.

## Pemakaian langsung

```python
from neva256_native import NativeCipher

c = NativeCipher(b"\x00" * 32, b"\x01" * 16)
blob = c.encrypt_bytes(b"halo")
assert c.decrypt_bytes(blob, True) == b"halo"
```

## Build dari sumber

Butuh Rust toolchain:

```bash
pip install maturin
maturin build --release          # wheel untuk platform ini
maturin develop --release        # install ke venv aktif
```

## Test kompatibilitas

Test parity (native == pure Python) ada di `../tests/test_neva.py`.

