HEFactory: Homomorphic Encryption made simple in Python
1.3K
HEFactory is a project aiming at bridging complex Homomorphic Encryption with Python. It is made of three different components:
It works in a simple way, by using symbolic executions. For example, to perform encrypted addition and multiplication, we use:
with CGManager() as cgm:
encrypted_a = CGSym(cgm, a) # Declare encrypted a
encrypted_b = CGSym(cgm, b) # Declare encrypted b
res = encrypted_a + encrypted_b # Perform encrypted sum
cgm.output(res) # We declare our result
After the compilation of the CGManager finishes, we need to perform the execution. Boar automatically makes use of the generated files to compute the encrypted addition.
boar = Boar(verbose=True)
boar.launch()
Please check out the examples to learn more about how to use HEFactory.
Content type
Image
Digest
sha256:e3d74b92c…
Size
1.5 GB
Last updated
over 3 years ago
docker pull jcabrero/hefactory