Expand description
Portable encrypted vault backup and restore. Portable encrypted vault backup and restore.
Structs§
- Backup
Config - Configuration stored in a backup file.
- Backup
Info - Summary information about a backup file.
- Backup
Key - A key entry in a backup file.
- Backup
Seal - Threshold seal carried in a backup: the wrapped DEK plus the OPRF params needed to re-derive the unwrapping key. Only ciphertext/params, never plaintext, so a backup never contains a threshold secret’s value in the clear.
- Backup
Secret - A secret entry (password, API token, note) in a backup file. Omitting these
from backups would be silent data loss, so a full-vault backup includes them.
The backup file is itself passphrase-encrypted;
nameandvalueare also scrubbed from memory on drop and never printed. - Backup
Share - A FROST share entry in a backup file.
- Decrypted
Backup - Decrypted backup data with all vault contents.
Constants§
- MAX_
BACKUP_ SIZE - Maximum backup file size (64 MiB).
- MIN_
PASSPHRASE_ LEN - Minimum passphrase length for backup encryption.
Functions§
- create_
backup - Create an encrypted backup of all vault data.
- create_
backup_ from_ data - Create an encrypted backup from pre-gathered data.
- decrypt_
backup - Decrypt a backup file and return its contents.
- restore_
backup - Restore a backup to a new vault at the target path.
- verify_
backup - Verify a backup file and return summary information.