Backup & Restore
Export all your notes as a password-protected backup file, and restore them on any device running KeyScribe.
Creating a Backup
- Go to Settings > Backup & Restore
- Enter a strong password
- Tap Create Backup
- Choose where to save the backup file
What Happens During Backup
- All notes are decrypted using your device’s private key
- The plaintext notes are serialized to JSON
- A key is derived from your password using PBKDF2WithHmacSHA256 (100,000 iterations) with a random salt
- The JSON is encrypted with AES-256-GCM using the derived key
- The result is packaged into a backup file containing the salt, IV, encrypted data, and note count
The backup file is useless without the password. There is no password recovery.
Restoring a Backup
- Go to Settings > Backup & Restore
- Tap Restore Backup
- Select the backup file
- Enter the password you used when creating the backup
What Happens During Restore
- The password is used to derive the same key via PBKDF2
- The backup data is decrypted with AES-256-GCM
- Each note is re-encrypted using the current device’s RSA key pair
- Notes are inserted into the local database
This means backups are portable - you can restore on a different device. The notes will be re-encrypted with that device’s key pair.
Important Notes
- Remember your password - There is no way to recover it. If you forget it, the backup is permanently inaccessible.
- Restoring adds notes - It does not overwrite existing notes. Duplicate notes may appear if you restore twice.
- Backup contains plaintext temporarily - During the backup process, notes exist in plaintext in memory. The backup file itself is encrypted.