write
Engine.write_plaintext(plaintext, filename)
- Saves the plaintext to the specified path. - Input: - Plaintext - filename: str - Can be an absolute or relative path. - Output: - None
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine()
message = [1, 2, 3]
plaintext = engine.encode(message)
engine.write_plaintext(plaintext, "/opt/desilo/plaintext")
Using a relative path