Skip to content

sarojaerabelli/py-fhe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-fhe

A Python 3 library for fully homomorphic encryption. Currently, this library includes an implementation of the Brakerski-Fan-Vercauteren (BFV) scheme, the Cheon-Kim-Kim-Song (CKKS) scheme, and bootstrapping for CKKS.

Installation

To install the library run the following command in the root folder:

pip install -e .

This should install the necessary dependencies.

Tests

You can run all the unit tests as follows:

pytest

To run a specific test file (i.e. test_polynomial.py), you can run the file using Python 3 with the command

python3 tests/test_polynomial.py

To run all tests in a single class from a test file (i.e. TestPolynomial from tests/test_polynomial.py), you can use the command

python3 tests/test_polynomial.py TestPolynomial

To run a specific test from a test file (i.e. TestPolynomial.test_add from tests/test_polynomial.py), you can use the command

python3 tests/test_polynomial.py TestPolynomial.test_add

Examples

See the examples folder for examples on how to use the library.

About

A Python library for fully homomorphic encryption

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages