Security and encryption
Last updated: 2026-11-25.
How Budgeter2 protects your data: in transit, on the server and on your phone, and exactly what end-to-end encryption does.
In transit
All connections between the app and the server are encrypted with HTTPS (TLS). Nobody on your network can read or modify them.
Who can see and change what
On every request, the server checks who is making it (with their session, see "Your account") and that what they ask to read, change or delete is theirs or belongs to a shared account they are part of today. Changing an identifier in a request doesn't give access to someone else's data: for the server, what isn't yours doesn't exist.
- In a shared account, only its administrator adds or removes participants and changes the account's details. Anyone can leave, and whoever leaves stops receiving it. An account can only be shared with friends.
- About other people, the app only receives their username and icon, and their public key if you are friends or share an account. Never their email.
- Exporting doesn't go through the server: the file is built on your phone from what it already has.
- These rules have automated tests, with two users: that one can't see, change or delete the other's data.
Your account
- You sign in with your Google account: we have no passwords that could leak or be guessed. Google checks it's you (with its second factor, if you turned it on) and we verify its response: that Google signed it, that it's for this app, that it hasn't expired and that Google verified your email. To protect or recover access, you use your Google account.
- Each device has its own session, which expires if it isn't used for 3 days. Its credential is a 384-bit random secret, of which the server only stores the SHA-256 hash. With it the app gets access tokens that last 6 hours. The server doesn't store the access tokens, but each one says which session it came from, and on every request the server checks that the session is still open.
- You can see and close your sessions from Tools → Account → Active sessions, one at a time or all except the phone you are using (for example, if you lost a phone or think someone got into your account). When you close a session, its access tokens stop working right away, without waiting for them to expire or for that phone to connect: it can no longer read or change anything on the server. The same happens when you sign out on a phone and when you delete your account, which deletes all its sessions.
- A phone whose session you closed from another device also deletes your data and the encryption key as soon as it connects. Until then, what it already had stored stays on it, protected by its screen lock.
- The server limits sign-in requests, by address and by user, to stop abuse.
- Your username is unique regardless of capitals: nobody can sign up as "Juan" if "juan" already exists.
- Getting into your account and reading your encrypted data are two different things. With encryption turned on, whoever gets into your account (even with your Google account) can't read what is encrypted without your recovery phrase or one of your phones, and recovering access to the account never recovers that key: we don't have it.
On your phone
- Your data is in a SQLite database inside the app. The app doesn't encrypt it on its own: it is protected by the system's isolation between apps, the phone's storage encryption (mandatory on phones launched with Android 10 or later) and your screen lock. Use a screen lock.
- The encryption key and session credentials are kept in the system's secure storage, encrypted with an Android Keystore key that never leaves the phone: even if they were copied, they couldn't be read on another one. Neither they nor the database are included in the Android backup or in the transfer to another phone.
- To see your recovery phrase or move the key to another phone, the app asks for your fingerprint, your face or the phone's PIN.
End-to-end encryption
It is optional and you turn it on from Tools → Account → Encryption. With encryption on, the most sensitive data is encrypted on your phone before it is uploaded: the server stores it and passes it between your devices without being able to read it. On your devices you keep seeing it as usual.
Once turned on, it can't be turned off.
What gets encrypted
- Records: the description and the amounts.
- Accounts: the name, the description and the initial amount.
- Categories: the name and the description. Subcategories and tags: the name.
- Budgets: the name and the limit amount.
- Recurring items: the name. Installments: the name and the principal.
- Cards and reports: the name.
What isn't encrypted, and why
The server needs some data in readable form to sync and share. This remains readable to it:
- Dates, types (expense, income, transfer), currencies and exchange rates, icons and colors, and which account, category or tag each item belongs to.
- The terms of cards and installments (rates, periods), and whether something is archived.
- When each item was created and modified, how many there are and the approximate length of texts.
- Your username, your email, your icon, your settings, your sessions, your friends and who you share each account with.
- Accounts shared with someone who hasn't turned encryption on yet: they stay readable until all their participants turn it on.
How it works
- When you turn encryption on, your phone randomly generates your recovery phrase: 12 words (BIP39 standard, 128 bits of randomness). It is the secret everything else comes from.
- From the phrase, your private key (X25519) and a key for each of your accounts are derived (with HKDF). All your devices compute the same keys from the phrase.
- Each value is encrypted separately with XChaCha20-Poly1305, with a new random number every time and bound to its place: an encrypted value can't be copied to another record without it being noticed.
- The server only stores your public key, which can't be used to read anything. It never receives your phrase or your private key, not even encrypted.
- When you share an account, its key travels inside an "envelope" encrypted with each participant's public key: only they can open it. The envelope also says who made it, in a way that can't be forged without their private key, and the app only accepts the ones made by you or by someone who is part of that account: the server can't slip in a key of its own.
- Each key derivation has its own purpose, and all randomness (the phrase, the keys and the one-time numbers) comes from the system's secure generator.
- To move the key to another phone, you use a QR code from a phone that already has it (both phones show a code to compare) or you type the phrase.
- We use open source, widely reviewed cryptographic libraries: @noble/ciphers, @noble/curves, @noble/hashes and @scure/bip39.
The limits in shared accounts
Your personal data uses keys computed on your phone from your phrase: they don't depend on anything the server says. And when you move the key to another phone of yours with the QR code, both show a code to compare, which stops anyone trying to get in the middle. Shared accounts have two limits:
- Other people's public keys: when you share an account, the app uses the other person's public key as the server provides it. There is no way yet to verify it between you (for example, by comparing a code). A compromised server could provide a fake key and so read that shared account. Your own envelope always uses the public key computed on your phone.
- Removing someone: when a participant is removed (or someone leaves), their envelope is withdrawn and the server stops sending them the account's data, but the account key doesn't change. Whoever had it could read what is entered afterwards if they got that data some other way (for example, with a compromised server).
Both improvements are planned: verifying keys between friends and changing the account key when someone is removed.
Even with those improvements, whoever leaves a shared account (or is removed) still has what they already received. The app deletes that account from their devices when they sync, but we can't guarantee they keep nothing: they may have a device that never syncs again, have exported the data, taken screenshots or written down what they saw, or kept the old key. Changing the key stops them from reading what is entered afterwards, not from keeping what was already shared. That's why you should only share an account with people you trust.
What encryption doesn't protect
- Someone who has your phone unlocked: there the data is readable, just as you see it.
- Your recovery phrase, if someone sees it or finds it.
- The files you export (CSV): they are readable wherever you save or share them.
- What you share: the people you share an account with see it readable on their devices.
- The server hiding or repeating something: encryption stops it from reading or changing your names and amounts without it being noticed (an encrypted value can't be moved to another place, and for your personal data the app doesn't accept unencrypted values), but not from leaving out a piece of data, sending you an earlier version of one, or changing what isn't encrypted, such as dates.
If you lose the phrase
As long as you have a device that is signed in, you can view it again (Tools → Account → Encryption) or move the key to a new phone with the QR code. If you lose the phrase and also all those devices, nobody can recover your encrypted data, not even us. That's why it's important to write it down on paper and keep it somewhere safe.
Reporting a security issue
If you find a vulnerability, write to [email protected] before making it public, so we can fix it. We truly appreciate it.
The Spanish version prevails.