write

Engine.write_conjugation_key(conjugation_key, filename)
Saves the conjugation key to the specified path.
  • Input:
    • ConjugationKey
    • 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()
conjugation_key = engine.create_conjugation_key(secret_key)
engine.write(conjugation_key, "/opt/desilo/conjugation_key")

Using a relative path

from desilofhe import Engine

engine = Engine()
secret_key = engine.create_secret_key()
conjugation_key = engine.create_conjugation_key(secret_key)
engine.write(conjugation_key, "conjugation_key")