read

Engine.read_ciphertext(file_path)
Creates a ciphertext by reading data from a file. - Input: - file_path: str or pathlib.Path - Can be an absolute or relative path. - Output: - Ciphertext

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
ciphertext = engine.read_ciphertext("/opt/desilo/ciphertext")

Using a relative path

from desilofhe import Engine

engine = Engine()
ciphertext = engine.read_ciphertext("ciphertext")