“Encrypted on the device”: what it means for the user
When an app says “your data is encrypted”, it is worth asking where, and who holds the key. The products I built are described this way: Onyx as an app whose data is encrypted on the device, and Vantage as an encrypted task manager. Here is what that means in general, and what is worth knowing as a user and as a business owner.
Encryption in plain language
Encryption turns information into text that cannot be read without a key. The important question is where the key is. If it is on the company’s server, the company (or anyone who breaks into it) can open the information. If it is kept only with the user, even the company cannot read it.
Three places to encrypt
- In transit: a secure connection (HTTPS) protects the information while it travels over the internet. This is the baseline, and every site needs it.
- On the server: the information is encrypted while stored at the company, but the company has access to the keys.
- On the device: the information is encrypted on the user’s side, and the key is derived from something only they hold, such as a password.
What the advantage is
If the data is sensitive, such as income and expenses or a personal task list, encryption on the device reduces what can leak. Even if a server is breached, what is there is information that cannot be read without the key.
What the trade-offs are
- Recovery: in a system where the key is only with the user, there is nobody to turn to when the password is forgotten. This is a direct result of the protection.
- Syncing between devices: harder to build, because the data has to travel encrypted and be opened only on the user’s side.
- Search and analysis: you cannot do on the server side things that require reading the data.
- Support: when something breaks, there are fewer ways to help without seeing the data.
What it does not protect against
Encryption on the device will not help if the device itself is infected with malware, or if someone knows the password. It is also not a replacement for a clear privacy policy and for careful building of the rest of the system.
Where the key comes from
Usually the key is not stored as is. It is derived from the user’s password by a function designed to be slow, so that guessing passwords by trial and error is hard. That way the data can be opened only by someone who knows the password. It also explains why there is no ordinary “forgot password” in such systems: if the key is derived from the password, nobody else has a way to bring it back.
Common myths
- “Encrypted means completely safe.” Encryption protects the data under certain conditions, but not in every scenario. A weak password or an infected device still endanger it.
- “If there is no cloud, there is no risk.” Data kept only on the device can also be lost if the device is stolen or broken, so it matters to know whether there is a backup and how it is protected.
- “Encryption is a feature you add at the end.” It affects the whole structure of the system, so it has to be decided at the start.
Questions to ask a provider
- Is my data sent to a server, and in what state: readable or encrypted?
- Who can read it: you, me, a third party?
- How can I back it up, and what happens to the backup: is it encrypted too?
- What happens if I change devices?
- Is there an external review or public documentation of how the protection works?
When it fits
Encryption on the device suits mainly personal and sensitive information: finances, health, private lists. If the information is not sensitive, or the server needs to process it in order to provide the service, the trade-offs may not be worth it. There is no single right answer, and there are cases where server-side encryption with good access controls is the reasonable choice.
Encryption and privacy
Encryption is one tool among several. Privacy also includes what is collected in the first place, how long it is kept and who it is shared with. An app that collects little, and explains it clearly, contributes to privacy no less than strong encryption. It is worth reading the privacy policy and checking that what it says matches what the app does.
What to remember as a user
If you use an app with on-device encryption, keep your password in a safe place, and check whether you have an encrypted backup option. If you are building such an app, it is worth explaining to users clearly what happens if they forget the password, before they create the account and not after.
How to ask the right questions
When you choose an app, or commission the building of one, it is worth asking: what exactly is encrypted? Where is the key? What happens if the password is forgotten? A clear answer to these questions says much more than the word “encrypted” alone.