read
Engine.read_secret_key(file_path)- Creates a secret key by reading data from a file.
- Input:
- file_path:
str | pathlib.Path- Can be an absolute or relative path.
- file_path:
- Output:
SecretKey
Examples
Using an absolute path
from desilofhe import Engine
engine = Engine()
secret_key = engine.read_secret_key("/opt/desilo/secret_key")
Using a relative path