📚 Encyclopedia

Security & Cryptography · updated 2026-10-13

Passphrase-encrypted export files for moving app data between phones

encryptionaes-gcmpbkdf2exportbackupfile-formatandroid

When an app keeps personal data only on the device (no account, no server), the way to move it to a new phone is a file the user exports, carries, and imports, protected by a passphrase they choose. The Keyboard app's personal-data export is a compact, reusable design.

File format (Keyboard KBDATA)

magic "KBDATA" | version byte | PBKDF2 iteration count | salt | GCM nonce | AES-256-GCM(ciphertext + tag)

Import semantics

UX rules

Sync later

If sync is ever wanted, upload the same encrypted blob; the server never sees plaintext.

See also

Linked from

Sources: keyboard memory (history v1.9.0), message memory (project_testing BackupManager, v2.10.0 plaintext export confirm), tldr post #1723