AutoBackupTool encrypts every backup using Fernet symmetric encryption from theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Eraiyanbupeterfrancis/AutoBackupTool/llms.txt
Use this file to discover all available pages before exploring further.
cryptography library. Your data is encrypted in memory before any network transfer occurs — nothing unencrypted ever leaves your machine.
How encryption works
When you trigger a backup, AutoBackupTool runs the following pipeline entirely in memory:- Compress — the selected folder is zipped into an in-memory buffer using
zipfile.ZIP_DEFLATED. - Encrypt — the zip buffer is encrypted with your Fernet key, producing an encrypted binary blob.
- Upload — the encrypted blob is uploaded to Google Drive as a
.encfile.
Generate your encryption key
AutoBackupTool includesencrypt.py to generate a new key:
backup.env in the next step.
Fernet keys are 32 bytes of random data, encoded as URL-safe base64. The same key is used to both encrypt and decrypt — keep it secret, keep it safe.
Store the key in backup.env
Open (or create)backup.env in your project directory and set ENCRYPTION_KEY to the value you just generated:
YOUR_ENCRYPTION_KEY_HERE with the full key string printed by encrypt.py.
How the key is loaded at runtime
backup_utils.py loads the key from backup.env at startup using python-dotenv, then passes it directly to Fernet:
backup.env.