Skip to main content

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

Metadata

Release files for advanced-bfv-fhe 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for advanced-bfv-fhe 0.1.0
File Size Uploaded Provenance
advanced_bfv_fhe-0.1.0.tar.gz 5.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for advanced-bfv-fhe 0.1.0
File Interpreter ABI Platform
advanced_bfv_fhe-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / advanced_bfv_fhe-0.1.0.tar.gz

Download URL advanced_bfv_fhe-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2605e4cb79a02f96bb31010cad18fcd4b64a52e351151978eeff2688c294c9b8
BLAKE2b-256 checksum
How to use checksums
723e033655e9dc53ab3ab9aa5399203ab5f5fd8975e33114259b2d318839c0be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release files / advanced_bfv_fhe-0.1.0-py3-none-any.whl

Download URL advanced_bfv_fhe-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cf063f3adf76e54c9245b72d026056efd868eed1fd8603f93004732f563f4056
BLAKE2b-256 checksum
How to use checksums
f369c12152ef5ccd8e3e1f3ea4dcd0747b494336e53bcf679c8476d0db2e2dfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Security for advanced-bfv-fhe 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page