read

Engine.read_light_plaintext(filename)
Creates a light plaintext by reading data from a file.
  • Input:
    • filename: str
      • Can be an absolute or relative path.
  • Output:
    • LightPlaintext

Examples

Using an absolute path

from desilofhe import Engine

engine = Engine()
public_key = engine.read_light_plaintext("/opt/desilo/public_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
public_key = engine.read_light_plaintext("public_key")