Huelse / SEAL-Python

Microsoft SEAL 4.X For Python
MIT License
324 stars 65 forks source link

Is that possible to serialize key, cipher text into binary string? #33

Closed renziyao closed 4 years ago

renziyao commented 4 years ago

Hi, I want to send the cipher text through network. Saving cipher text to a binary file and read it is not convenient. Could you please add a function that can serialize cipher text into binary string?

Huelse commented 4 years ago

https://github.com/Huelse/SEAL-Python/blob/6dc7bda48b6027a11e04ddb1360f49a83de80bd8/tests/0_data_type.py#L62-L64

just like it.

renziyao commented 4 years ago

This can only save cipher text to the file. Is that possible to serialize cipher text to memory?

Huelse commented 4 years ago

The release 3.3.2 could pickle the ciphertext and the keys objects, but it's usually large more than the native file.

renziyao commented 4 years ago

Thanks. I update SEAL-python and it looks good.