aeat.adapters.persistence.storage.master_key._master_key_io module

Master-key byte encoding, secure writes, and passphrase resolution.

PASSPHRASE_ENV_VAR: Final[str]

Environment variable consulted by the file backend before prompting.

PassphraseCallback

Pluggable hook for tests — callable returning the passphrase as a str.

alias of Callable[[], str]

atomic_write_secure_bytes(target, payload)[source]

Atomically write payload to target with mode 0o600.

Return type:

None

Parameters: