Metadata-Version: 2.4
Name: advanced-bfv-fhe
Version: 0.1.0
Summary: Production-grade pure Python RNS-NTT BFV Homomorphic Encryption scheme
Author-email: avdhut bagal <avdhutbagal24@gmail.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: numpy>=1.20.0

# 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:

```bash
pip install advanced-bfv-fhe
