encrypt_backup
Encrypt a backup file using AES-256-GCM. Protects data with a passphrase, producing an encrypted .enc file.
Instructions
AES-256-GCM encrypt a backup file.
Produces <backup_path>.enc. The passphrase is never stored.
Uses Python stdlib only (hashlib for key derivation, os.urandom for salt/nonce).
NOTE: This uses a simple PBKDF2+AES-GCM implementation.
For production-grade encryption, use a proper secrets manager.
Args:
backup_path: Full path to the .sqlite backup file.
passphrase: Encryption passphrase.
Returns JSON with enc_path and whether original was removed.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backup_path | Yes | ||
| passphrase | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |