MCPcopy Create free account
hub / github.com/Huelse/SEAL-Python / serialization_example

Function serialization_example

examples/7_serialization.py:32–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30
31
32def serialization_example():
33 print('serialization example')
34 print('-' * 70)
35 cipher2, context2, ckks_encoder2, decryptor2 = get_seal()
36 cipher2.save('cipher2.bin')
37 print('save cipher2 data success')
38
39 time.sleep(.5)
40
41 cipher3 = Ciphertext()
42 cipher3.load(context2, 'cipher2.bin')
43 print('load cipher2 data success')
44 plain3 = decryptor2.decrypt(cipher3)
45 data3 = ckks_encoder2.decode(plain3)
46 print(data3)
47 print('-' * 70)
48
49
50def pickle_example():

Callers 1

7_serialization.pyFile · 0.85

Calls 1

get_sealFunction · 0.85

Tested by

no test coverage detected