Lab41 / PySEAL

This repository is a fork of Microsoft Research's homomorphic encryption implementation, the Simple Encrypted Arithmetic Library (SEAL). This code wraps the SEAL build in a docker container and provides Python API's to the encryption library.
Other
225 stars 86 forks source link

Make SEAL Ciphertext and SEALContext serializable (through Pickle) #18

Closed nilslukas closed 6 years ago

nilslukas commented 6 years ago

Use a base64 encoding, stringstreams and pybinds pickle support to allow the Python serialization of SEAL Ciphertext and SEALContext. Since the evaluator becomes also trivially pickleable when the SEALContext is pickleable, one can now use Pythons multiprocessing library to execute the encryption on multiple cores provided multiple plaintext moduli are used. Naturally, the pickle serialization can also be used to dump Ciphertexts into a file through Python.