Security

Only you can read what you write.

Diascroll encrypts everything on your device before it is sent, with keys that only you hold. Here is how it works, what our server can see, and what encryption cannot protect.

  • Encrypted on your device
  • Keys only you hold
  • Data stored in the European Union

How it works

Four steps keep your words yours, and every one of them happens on your device.

  1. Your password

    When you sign in, your device turns your password into two keys, with a deliberately slow function (Argon2id) that makes guessing it costly. The password itself is never sent anywhere.

  2. Two separate keys

    One key signs you in: it is the only thing our server receives, and it cannot open your data. The other key never leaves your device, and opens your data key.

    • Sign-in key: sent to our server
    • Encryption key: stays on your device
  3. Your data key

    When you create your account, your device makes a random data key. It opens a separate key for each of your lists.

  4. Everything you write

    Each note, event, task, photo and file is encrypted with its list’s key before it leaves your device, and decrypted only on your devices.

What our server sees

Our server keeps your encrypted data and passes it between your devices. This is all it can learn.

It can see

  • Your email address, to sign you in
  • How many blocks and files you have, and their encrypted size
  • When something changes, and when a file is uploaded
  • Which devices are signed in, and when they were last active (not their names)
  • The internet addresses your devices connect from

It never sees

  • Your titles, texts, photos, videos, recordings and files
  • The days and times of your blocks, and their reminders
  • Whether a block is a note, an event or a task
  • Your lists, folders and tags, and which list a block belongs to
  • Places, moods, colors and settings
  • Your password and your recovery code

If you forget your password

Nobody can reset your password for you: that would mean holding your keys. Instead, you have two ways back.

A device is still signed in

Choose a new password in its settings. Your data is not encrypted again: only the copy of your data key locked by your password changes.

You have your recovery code

When you create your account, you get a recovery code to print or save. It opens your data on any device, and then you choose a new password. If you lose it, or think someone has seen it, make a new one in the settings of a signed-in device: the old one then stops working.

You lost all three

Without your password, a signed-in device or your recovery code, your data cannot be opened, by you or by us. Keep your recovery code somewhere safe.

On your devices

  • Ready without a connection

    Your devices keep your data decrypted, so everything works offline and search is instant. Your device’s lock protects it: use a passcode.

  • Keys in the device’s safe

    Your data key is kept in the iPhone’s Keychain, in Android’s Keystore or, in a browser, sealed with a key the browser never lets out.

  • Signing out removes everything

    When you sign out, your data, files and keys are removed from that device. They stay on your other devices and, encrypted, on our server. From a signed-in device you can also sign out another one, in Settings: if it is online, it removes them at once; if not, it can no longer sync and asks for your password.

  • Two-step verification, if you want it

    In the settings you can ask for a code from an authenticator app, besides your password, whenever a device signs in. Our server then refuses any session that has not given the code. Your recovery code still lets you in if you lose the app, and turns it off.

  • Lock the app on your phone

    If you want, the app asks for Face ID, your fingerprint or the phone’s passcode when it opens, and hides its screen in the app switcher.

What encryption cannot do

No system protects against everything. These are the limits we know of.

  • The web app comes from our server

    As with every web app, your browser runs the code our server sends at each visit, so whoever took over that server could change it. Apps installed from the App Store or Google Play change only with an update.

  • Calendars you subscribe to, on the web

    Browsers cannot download calendars from other sites, so on the web our server fetches them for you. It keeps and logs nothing, but sees the link and the calendar while passing them on. Phones download them directly.

  • Place names

    When a note records where you were, your phone asks Apple or Google for the place’s name. They receive the position, never the note.

  • No independent audit yet

    The encryption relies on well-known libraries that were audited independently. The app itself has not been audited by an outside firm yet.

Technical details

For those who want to check.

Encryption
XChaCha20-Poly1305, with a new random nonce for every encryption. A record’s plain envelope fields (id, version, deletion, time) are bound to it as associated data, so the server cannot swap or alter them unnoticed.
Password
Argon2id on the device, salted per account; HKDF-SHA-256 derives the sign-in key and the encryption key from its result.
Keys
A random 256-bit data key. One key per list, one for blocks without a list and one for account-wide records such as tags and settings, kept on the server sealed with the data key, under ids that cannot be linked to lists.
Records
Each record starts with a header, sealed with a key derived from the data key, that names its list’s key: the server cannot tell which records belong to the same list.
Files
Each file and thumbnail has its own random key and is encrypted in 64 KiB chunks. Chunks cannot be reordered, and a file cut short does not open.
Recovery code
128 random bits, shown once, which lock a second copy of the data key.
Libraries
libsodium for Argon2id (native on phones, WebAssembly on the web), and @noble/ciphers and @noble/hashes, pure JavaScript libraries; all audited independently. No home-made cryptography.
Servers
Your encrypted data is stored by Supabase (Postgres database, authentication, file storage) in Frankfurt, Germany.