write
Engine.write_ciphertext(ciphertext, file_path)- 지정된 경로에 암호문을 저장합니다.
- 인풋:
Ciphertext- file_path:
str | pathlib.Path- 절대 경로, 상대 경로 전부 가능합니다.
- 아웃풋:
None
예시
절대 경로
from desilofhe import Engine
engine = Engine()
secret_key = engine.create_secret_key()
public_key = engine.create_public_key(secret_key)
message = [1, 2, 3]
ciphertext = engine.encrypt(message, public_key)
engine.write_ciphertext(ciphertext, "/opt/desilo/ciphertext")
상대 경로