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
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.
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.