write
Engine.write_ciphertext(ciphertext, filename)
- Saves the ciphertext to the specified path.
- Input:
- Ciphertext
- filename: str
- Can be an absolute or relative path.
- Output:
- None
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
message = [1, 2, 3]
cipehrtext = engine.encrypt(message, public_key)
engine.write_ciphertext(ciphertext, "/opt/desilo/ciphertext")
Using a relative path