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

Saving secret_key and public key #36

Open CarlosMoralesSal opened 4 years ago

CarlosMoralesSal commented 4 years ago

I'm trying to save the secret_key and public_key in a file to use it after that in other files. How can I do that?. I see the method save, but I don't know how to use it.

Thanks so much

Arman001 commented 4 years ago

Pickling works like a charm here, just use pickle dump method which will store your keys and then using load you can load keys from files.