decrypt_backup
Decrypt .enc backup files using the original passphrase to restore the SQLite database. Specify the encrypted file path and passphrase; optionally set an output path.
Instructions
Decrypt a .enc backup produced by encrypt_backup().
Reverses the format [8B magic][16B salt][12B nonce][ciphertext+tag]. Writes the
recovered .sqlite next to the .enc file (dropping the .enc suffix) unless
output_path is given. The passphrase is never stored. This is the counterpart
to encrypt_backup — without it, encrypted backups could not be restored.
Args:
enc_path: Path to the .enc encrypted backup.
passphrase: The passphrase used at encryption time.
output_path: Optional explicit destination for the decrypted file.
Returns JSON with out_path and the method used.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enc_path | Yes | ||
| passphrase | Yes | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |