Skip to content
On this page

Function: restoreEncryptedBackup()

TypeScript
function restoreEncryptedBackup(backup: EncryptedBackup, passphrase: string): RestoredBackup;

Defined in: vault-core/src/backup.ts:85 (opens in a new tab)

Open a backup. The file names its own work factors, so they are checked before any memory is spent (assertAcceptableKdfParams). Throws on a wrong passphrase or a damaged file.

ParametersLink to this section

ParameterType
backupEncryptedBackup
passphrasestring

ReturnsLink to this section

RestoredBackup