Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Ayoub Benaissa youben11

🏠
Working from home
View GitHub Profile
@youben11
youben11 / rlwe_he_scheme.py
Last active May 17, 2020
Implementation of an homomorphic encryption scheme with numpy based on the ring learning with error problem
View rlwe_he_scheme.py
"""A basic homomorphic encryption scheme inspired from BFV https://eprint.iacr.org/2012/144.pdf
Disclaimer: This implementation doesn’t neither claim to be secure nor does it follow software engineering best practices,
it is designed as simple as possible for the reader to understand the concepts behind homomorphic encryption schemes.
"""
import numpy as np
from numpy.polynomial import polynomial as poly
# Functions for random polynomial generation
You can’t perform that action at this time.