Skip to main content

Module backup

Module backup 

Source
Expand description

Portable encrypted vault backup and restore. Portable encrypted vault backup and restore.

Structs§

BackupConfig
Configuration stored in a backup file.
BackupInfo
Summary information about a backup file.
BackupKey
A key entry in a backup file.
BackupSeal
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.
BackupSecret
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; name and value are also scrubbed from memory on drop and never printed.
BackupShare
A FROST share entry in a backup file.
DecryptedBackup
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.