Skip to main content

decrypt_backup

Function decrypt_backup 

Source
pub fn decrypt_backup(
    envelope: &BackupEnvelope,
    password: &str,
) -> Result<BackupPayload, AppError>
Expand description

Decrypt a backup envelope and return the payload.

Use this for confirmed imports to avoid the overhead of building an ImportResult preview. For preview mode, use preview_import().