write
Engine.write_plaintext(plaintext, file_path)- Saves the plaintext to the specified path.
- Input:
- Plaintext
- file_path: str or pathlib.Path
- 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