Security
How Saphen keeps your notes private
Saphen encrypts every note on your device before it's saved or synced. Here's what that means, what our server can and can't see, and the tradeoffs, in plain language.
Saphen is end-to-end encrypted. Your notes, your clients' names and your templates are encrypted in your browser before they're saved or sent anywhere. Our server stores only the encrypted result. We can't read it, and we built Saphen so we never could.
This page explains how that works, first in plain language and then in technical detail.
The short version
- Encrypted on your device. Everything you write is encrypted in your browser with a key that only your devices hold. It stays encrypted on our server and on the way there.
- We can't read your notes. Not the text, not your clients' names, and not even whether a saved record is a note, a client or a template. To our server, every record is an unreadable block of the same kind.
- No passwords to your notes. Instead of a passphrase you might forget or reuse, your notes are unlocked by your device, a passkey, approval from another of your devices, or your recovery code.
- Nobody can reset it, including us. That's what makes it private, and it's also the tradeoff: if you lose every device, every passkey and your recovery code, your notes can't be recovered by anyone.
- Nothing listens to your sessions. Saphen never records a session. Dictation, when you use it, runs on your device, and only where your browser can transcribe without sending audio away.
What our server can see
| We can see | We can't see |
|---|---|
| Your account email, and your name if you signed in with Google | Any note, in whole or in part |
| The profession you chose during setup | Your clients' names or details |
| How many encrypted records you have, their sizes and when they changed | Whether a record is a note, a client, a template or a snippet |
| Which devices are signed in, and when they were last used | Your encryption keys or your recovery code |
| Whether you've bought Saphen | What you dictate or scan |
If our database were stolen, or if someone demanded our records, there would be no notes or client names to hand over: only encrypted data we can't open.
Unlocking your notes on a new device
Your notes are protected by one master key, created on your first device. That key never reaches our server in a form we can use. Each way of unlocking holds its own encrypted copy of it:
- This device. Once a device is set up, it unlocks automatically. Its key is stored by your browser in a way that can't be copied out.
- A passkey. On browsers that support it (for example with iCloud Keychain or Google Password Manager), a passkey signs you in and unlocks your notes in one step.
- Approval from another device. Sign in on the new device, and it shows a 12-character code. Type that code on a device that's already signed in, and it hands over the key directly, encrypted so that our server can't read it in transit.
- Your recovery code. Saphen shows you a recovery code once, during setup. It works anywhere, so keep it somewhere safe and offline, like a password manager or a printed copy in a locked drawer.
If you lose all of these, nobody can unlock your notes. We'd rather tell you that plainly than pretend otherwise.
Offline, sync and conflicts
Saphen keeps an encrypted copy of your notes on each device, so it opens instantly and keeps working without a connection once it's loaded. Changes sync in the background, still encrypted, when you're back online.
If the same note is changed on two devices before they sync, Saphen never throws clinical text away: it keeps both versions and labels the second one as a conflict copy for you to review.
When you log out of Saphen on a browser, it erases that account's local copy from that browser (and warns you first if anything hasn't synced yet).
What Saphen doesn't protect against
No security design covers everything, and we think you should know the limits:
- A compromised device. If someone has control of your unlocked computer or phone, they can read what you can read. Lock your devices, and log out of Saphen on shared computers.
- A compromised website. Like every encrypted app that runs in a browser, Saphen relies on the app code your browser downloads being genuine. If an attacker could change the code we serve, they could try to capture notes as you type them. We keep third-party code out of the app wherever we can to reduce that risk.
- Revoking a lost device. You can sign out any device from Settings, which stops it syncing. It can't erase a copy that is already on that device, which is still protected by that device's lock and browser.
- What happens after you copy. Once you paste a note into your EHR or anywhere else, it's protected by that system, not by Saphen.
Your confidentiality obligations
Saphen is built so that your clinical content is never readable outside your own devices. We hold only encrypted data plus your account details, so there's no readable client information on our side to expose. Your notes become part of the record when you paste them into your EHR, which stays the system of record. If your practice has specific compliance requirements, check them with your compliance advisor.
Technical details
For readers who want the specifics:
- Record encryption: AES-256-GCM with a fresh 96-bit IV per record. Each record's associated data binds it to your account, its id and the key version, so an encrypted record can't be swapped between accounts or records without detection.
- Key hierarchy: a random 256-bit account master key wraps the items key that encrypts your records. The master key is itself wrapped (AES-256-GCM) separately for each unlock method: a non-extractable WebCrypto device key, a key derived with HKDF-SHA256 from your 160-bit recovery code, and a key derived from each passkey's WebAuthn PRF output.
- Device approval: the new device creates a one-time P-256 key pair and shows a 12-character code derived from its public key. The approving device checks the code, then sends the master key over ECDH. To intercept, an attacker would need a key that produces the same code within the 10-minute window.
- Same bytes everywhere: a record is encrypted once and stored the same way in your browser, on the network and in our database. Syncing never decrypts it.
- Sessions: each device gets its own random session token in an httpOnly cookie. Our server stores only a hash of it. You can see and revoke sessions in Settings.
- Account passwords (if you sign up with email) are hashed with Argon2id. Your password signs you in; it doesn't encrypt your notes.
Reporting a security issue
If you think you've found a vulnerability, please email [email protected] with the details. We'll reply, keep you updated, and credit you if you'd like.