How encrypted sync and hand-over work
How PassKeel keeps profiles the same on all your computers: what is encrypted and how, the recovery trade-off we chose, one computer at a time, and what happens when two versions collide.
The PassKeel team · · 6 min read
- sync
- security
- explainer
A browser profile is a lot of state: cookies and logins, local storage and IndexedDB, open tabs, extension settings, the proxy, the device identity. Moving that state between computers safely is harder than it sounds. Copy a profile folder while the browser is running and you get a broken copy. Open the same profile on two computers at once and one set of changes wins while the other is lost. Upload it in the clear and whoever holds the server holds your sessions.
PassKeel’s cloud sync is built around three answers: encrypt on the computer, keep a profile open in one place at a time, and never throw away a version silently. This post walks through each, including the one trade-off we made on purpose.
What is synced
A synced profile carries everything that makes it that profile:
- its name, notes, tags and group;
- every fingerprint setting, its start pages and what happens when it opens;
- its proxy, including the password;
- cookies, local storage, IndexedDB, service workers and cached site data;
- saved logins and open windows and tabs, so “continue where I left off” works on any computer;
- extension data, such as an extension’s settings.
Some things stay on each computer: the extension library itself (each computer installs extensions), templates, automation recordings and schedules, API keys, app settings and browser caches. A few very large web apps keep big offline databases; those aren’t synced, to keep uploads small, but their cookies and storage are, so you stay signed in.
Encrypted before it leaves
Each profile is encrypted on your computer, with AES-256-GCM, before it’s uploaded, and travels over TLS. PassKeel’s servers store the encrypted result. Your password never leaves your computer either: it unlocks your account key locally, and signing in proves you know it without sending it.
Uploads are incremental. After the first upload, only the parts of a profile that changed are sent, so most syncs are small. Your data is stored in the EU, in Germany.
The trade-off we chose
Here’s the part we want to be plain about. If profiles were encrypted only with a key derived from your password, a forgotten password would mean every synced profile was gone for good. In our experience, that is a far more likely harm for most people than the risk it protects against.
So PassKeel also keeps a sealed recovery copy of your account key, which lets you reset a forgotten password by e-mail and keep your profiles. The key that opens it is kept apart from our database and its backups and is used only for password resets. The consequence is that PassKeel could technically decrypt synced profiles. Sync is encrypted, but it isn’t end-to-end encrypted against us, and we don’t claim otherwise.
If a profile must never leave your computer, turn off Sync this profile in its Sync dialog. Its status becomes Only on this computer, and nothing turns sync back on by itself.
When uploads happen
You don’t press anything. A new profile uploads a few seconds after you create it. An open profile uploads when it closes cleanly, because that’s the moment its files are complete and consistent. Anything still pending is retried about once a minute, one profile at a time, most recently used first. Profiles from your other computers arrive about once a minute too, even with the PassKeel window closed; their files download the first time you open them.
If a profile doesn’t close cleanly (a crash, a power cut), its changes upload at the next clean close or when you choose Sync now. If the server can’t be reached, uploads wait and retry by themselves.
One computer at a time
The hardest problem in profile sync isn’t encryption, it’s concurrency. Browser data can’t be merged file by file: two copies of a cookie database that both changed can’t be combined into one that’s right. So a synced profile is open on one computer at a time.
When you open a profile, PassKeel takes a lock on it. While it’s open, the computer checks in every minute. If you then open the same profile on another computer, PassKeel says it’s open elsewhere, names the computer, and offers Ask to close it there. What happens next depends on whose computer it is:
- Your own computers hand over at once. The other computer closes the profile, saves it, uploads its changes, and the profile opens where you are, usually within a minute. Leave it open on your desktop, open it on your laptop in the evening, and it moves over.
- A teammate’s computer waits until the profile is idle. We don’t pull a profile out from under someone who’s working in it. By default, after 10 minutes without input in that window, it closes, saves and hands over. The teammate sees the request and can choose Keep it open or Close and hand over; each computer sets its own waiting time, or turns automatic hand-over off.
A connected automation script counts as activity, so a running job is never interrupted by a hand-over request.
When a computer disappears
Sometimes the computer holding a profile simply stops answering: it was switched off with the profile open, or lost its connection. After 10 minutes without a check-in, the lock is considered stale and PassKeel offers Take over. The profile opens from its last uploaded version. In a team, only owners and admins can take over; in your personal workspace, you always can.
The missing computer’s unsynced changes aren’t thrown away. When it comes back, they’re kept as a conflict version.
Two versions, both kept
Conflicts happen when the same profile changed in two places without either seeing the other’s changes: after a take-over, or after someone chose Open offline while another computer had the profile. PassKeel never picks a winner silently. The profile shows Two versions, and its Sync dialog says “This profile was changed on two computers. We kept both”, with a button to use the other version instead. The one you don’t choose stays in the versions list.
Separately, every upload becomes a version. Free keeps one earlier version, Solo and Team keep five, and all plans keep up to five conflict versions on top. Restore makes an earlier version current everywhere, and saves your unsynced changes as a version first, so a restore can itself be undone.
Offline
PassKeel works offline with profiles already on your computer, as long as it has reached its service within the last 72 hours. Opening a synced profile normally checks the lock with the server; if the server can’t be reached, Open offline is there, with a warning to use it only when no other computer has the profile.
Signing out
Each profile belongs to one account. If someone else signs in on the same computer, they don’t see your profiles. When you sign out, your profiles stay on the computer but hidden; on a shared computer you can remove them as you sign out, and synced ones come back wherever you sign in next. To release a lost laptop’s profiles, sign it out from Account > Computers on any other computer.
Read more
The docs cover each part in detail: how sync works, hand-over between computers, and versions and conflicts. For the security side, including how to report a vulnerability, see the Security page.