The Math of Privacy | How Argon2id and AES-256-GCM Protect Your Notes

    7 min read
    ByGabriel CAKraftwire Software
    Illustration for The Math of Privacy | How Argon2id and AES-256-GCM Protect Your Notes

    Sources

    Every figure above was checked against the page it cites · here they are, so you can check them too.

    Show 3 sources
    1. unlocked.everykey.com › secure-note-storage-apps

      Argon2id, which offers superior resistance to GPU-based brute-force attacks

    2. youtube.com › watch

      Standard Notes: Bitar, 2016. Proton April 2024. Argon2id + XChaCha20 Poly1305.

    3. securednotes.io › best-encrypted-note-apps

      Notes are encrypted on-device with XChaCha20-Poly1305, keys derived via Argon2, before they sync

    Frequently asked questions

    What is Argon2id and why is it used in notes apps?
    Argon2id is a key derivation function designed to resist GPU-based brute-force attacks by requiring significant memory to compute. In a notes app, it transforms your password into a cryptographic key locally on your device, ensuring the server never sees your actual password or the key used to unlock your data.
    How does AES-256-GCM protect my notes?
    AES-256-GCM is a symmetric encryption standard that provides both data confidentiality and integrity. The 256-bit key makes it virtually impossible to crack with current technology, while the Galois/Counter Mode (GCM) ensures that your notes haven't been tampered with or corrupted while stored on a server.
    What does zero-knowledge mean for my privacy?
    Zero-knowledge encryption means the service provider has no way to access your data. Encryption happens on your device (client-side) before syncing. Since the provider doesn't have your password or decryption key, they cannot read your notes, even if they are served a legal warrant or experience a data breach.
    Is Argon2id better than the encryption in Standard Notes or Joplin?
    Standard Notes uses Argon2id and XChaCha20-Poly1305, while Joplin uses AES-256. Argon2id is generally considered superior to older KDFs like PBKDF2 because it is memory-hard, making it much more difficult for attackers to use specialized hardware like GPUs to guess your password.
    Can I recover my notes if I forget my password in an encrypted app?
    Because encryption is zero-knowledge, the provider cannot reset your password. Most secure apps provide a one-time recovery code or a master key during account creation. You must store this safely, as it is the only way to recover your data if you forget your password.
    Do Argon2id notes apps work without an internet connection?
    Yes, modern encrypted apps use an offline-first approach. They store an encrypted version of your notes in a local database on your device. This allows you to search, edit, and create notes without an internet connection, syncing the changes once you are back online.

    Start writing with true privacy

    Get Started Free

    Related reading