/pyfv12

Python implementation of "Somewhat Practical Fully Homomorphic Encryption"

Primary LanguagePython

PyFV12

Python implementation of Fan and Vercauterens "Somewhat Practical Fully Homomorphic Encryption".

This implementation closely follows the paper. Theorems, Lemmas and Proofs were translated into tests. I avoided bit-shifting and other advanced techniques to keep the code as clean and comprehensible as possible.

NOTE: This implementation is for educational purposes only.

Usage

  1. pipenv install
  2. pipenv shell
  3. python main.py
  4. python main.py tests