The file is locked with your password and nothing else. Without the password it is unreadable, and any change made to it is caught on import.
01 · From the password to the key
- The key is made from your password with PBKDF2-HMAC-SHA256, 310,000 rounds, and a random 16-byte salt new for every export. The rounds make each guess at the password slow.
- The result is a 256-bit key. Neither the key nor the password is written anywhere, in the file or on the phone.
02 · The encryption
- The content is cut into pieces of 1 MiB, and each piece is encrypted with AES-256-GCM, which also seals it: a piece changed by a single bit no longer opens.
- Each piece has its own 12-byte nonce: 8 random bytes chosen for the export, followed by the piece’s number.
- Each piece is sealed together with its number and with whether it is the last one. A piece moved, removed, repeated or cut off at the end is caught, so the file is taken whole or not at all.
- Working piece by piece, the app exports and imports a file of any size with little memory.
03 · What it means for you
- A wrong password is known from the first piece, and the app says Wrong password for this file before it changes anything.
- A file that was altered or cut short is refused as This file is not an Opensolr Mail export.
- The file holds your sign-ins, opened from the phone’s key store and sealed only by your password. Choose a strong one and keep the file to yourself. See What is in the file.