Production-grade pure Python RNS-NTT BFV Homomorphic Encryption scheme
Project description
advanced-bfv-fhe by Avdhut Bagal
A pure Python implementation of the Brakerski/Fan-Vercauteren (BFV) Fully Homomorphic Encryption (FHE) scheme.
This library provides a mathematically rigorous, dependency-light framework for exploring lattice-based cryptography. It implements advanced optimization techniques including the Residue Number System (RNS) and the Number Theoretic Transform (NTT) entirely in Python using NumPy.
⚠️ Disclaimer: This package is intended for educational, research, and proof-of-concept purposes. Pure Python cryptographic implementations are vulnerable to timing attacks and lack the performance required for production-grade security systems. For securing real-world sensitive data, please use established C++/Rust engines.
Features
- Pure Python Architecture: No C++ compilers or complex Rust toolchains required to install and run.
- Residue Number System (RNS): Avoids multi-precision arithmetic bottlenecks by decomposing large ciphertexts.
- Number Theoretic Transform (NTT): Accelerates polynomial multiplication from $O(N^2)$ to $O(N \log N)$.
- Relinearization: Prevents ciphertext expansion during homomorphic multiplication, keeping memory footprints manageable.
Installation
Install the package directly from PyPI using pip:
pip install advanced-bfv-fhe
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 advanced_bfv_fhe-0.1.0.tar.gz.
File metadata
- Download URL: advanced_bfv_fhe-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2605e4cb79a02f96bb31010cad18fcd4b64a52e351151978eeff2688c294c9b8
|
|
| MD5 |
def2ac3c2467e3de82f4e4784dd95362
|
|
| BLAKE2b-256 |
723e033655e9dc53ab3ab9aa5399203ab5f5fd8975e33114259b2d318839c0be
|
File details
Details for the file advanced_bfv_fhe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: advanced_bfv_fhe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf063f3adf76e54c9245b72d026056efd868eed1fd8603f93004732f563f4056
|
|
| MD5 |
f2ddd668e4b46f633ff087cdf6e72841
|
|
| BLAKE2b-256 |
f369c12152ef5ccd8e3e1f3ea4dcd0747b494336e53bcf679c8476d0db2e2dfc
|