Skip to content
kuentas.online
← All articles

Privacy

How we encrypt your books

Every sale, loan and receipt is encrypted on your phones. Our server keeps only what's encrypted and holds no keys to read it. Here's how it works, with drawings you can tap.

your phones: they hold the keysencrypted records on their waythe server: passes along what's encrypted

A small business's books say a lot: what it earns, who owes it, what its payroll looks like, what loans it carries. The usual answer is "it's encrypted in our database". That protects against a stolen disk, but not against whoever runs the service, a breached server, or someone with access on the inside.

At Kuentas we wanted something else: that not even we can read your books. And that it doesn't rest on our word, but on keys that exist only on your team's phones.

keys to your records on the server
0
compartments, each with its own key
3
bits per key
256
of waiting before an account is recovered
48 h

What you see, and what we see

First, your book on your phone. Beside it, the same book as it reaches our server. What the server can read is in the strip at the bottom, and that's all there is.

Your phone · unlockedSoda La Esquina
  • Sale · Coffee and empanada+₡2,500
  • Expense · Flour 25 kg−₡18,000
  • Payment · Doña Rosa+₡10,000
  • Installment · BN loan−₡84,300
  • Order · 12 tamales+₡30,000
  • Receipt · gas bill1 photo
Kuentas server · encryptedXChaCha20-Poly1305

What it can see: the book "Soda La Esquina", who is on the team and in which role, and that a phone synced at 10:42.

  • It can't read

    Sales, expenses, items, contacts, amounts, loans, receipts and totals.

  • It stays on your phone

    Your PIN, your fingerprint, your 12 words and the keys to your books.

  • What it does keep

    Your email and name, the book's name and settings, the team and their roles, and when each phone syncs.

The full detail of what is kept, and where, is in the privacy policy.

Each role holds only the keys it uses

A book is encrypted in three compartments, each with its own key. An owner holds all three; a dispatcher, only the one for Orders. What isn't a role's isn't hidden on the screen: it doesn't reach their phone. Pick a role and see.

  • Accounts

    Sales, expenses, items, contacts, loans, bank accounts and receipts.

    No key: doesn't receive it

  • Orders

    Each order with its lines and total, and whether it went out.

    Has the key: receives it whole

  • Team

    Team records only owners manage.

    No key: doesn't receive it

Can record: only that an order went out. Other phones and the server refuse anything else: the team's signed list says what each role may sign.

The lock isn't a screen. It's a key.

Your PIN, or your fingerprint or face through a passkey, doesn't just hide the app: it opens the keys to your books on that phone. While it's locked, what's kept there is bytes nobody can read.

  1. 1

    It locks itself

    After 1, 5, 15 or 60 minutes unused, as you choose. Locking wipes the keys from memory and closes your books.

  2. 2

    Encrypted on the phone too

    Your books are kept encrypted in the browser, page by page. Without your lock they're meaningless bytes.

  3. 3

    Keys that can't be copied

    In use, the browser holds them so that not even the page itself can take them out. At rest, they're encrypted under your lock.

If you lose your phone

Your account key is encrypted twice: under your 12 words and under a synced passkey. We keep only those encrypted copies. That's why nobody at Kuentas can open your books or recover them for you: not an admin, not us.

  • New phone · seconds

    12 words or passkey

    They open your account key, and each book comes back the first time you open it.

  • New phone · seconds

    Approve it from your phone

    The new phone shows a code. Type it on one you already have, and that one hands over a signed proof.

  • Lost everything

    The slow path

    Your password and second step, 48 hours of waiting, and then an owner decides for each book.

  1. Hour 0

    You ask

    From another browser, with your password and your second-step code if it's on. New words are made there.

  2. Hour 0

    An email arrives

    With one link, "No fui yo" (it wasn't me), which cancels the request.

  3. Hour 48

    Your identity moves

    Only if nobody cancelled and the password wasn't changed. The lost keys' copies are deleted.

  4. Then

    Owners decide

    Each book lets you back in when an owner approves. A sole owner's books can't be opened again.

✕ "No fui yo" or a password change, at any point, cancels the whole request.

Assume we turn evil

For a service that holds your books, the right question is what happens if the attacker is the service itself. Pick an attack and see what stops it. The last one isn't prevented yet, and we say so.

$ pick an attack

What this doesn't cover

No system is infallible. This is what this design doesn't prevent, said plainly.

  • For now, you trust the code we serve

    As with any end-to-end encrypted web app, a compromised server could send other code. Kuentas is in a closed beta with accountants, shop owners and everyday people, and the phone apps are on their way to close that door.

  • Metadata is visible

    The server knows the book's name, who is on the team, and when and how much each phone syncs.

  • While it's unlocked

    Before it locks itself, whoever holds your phone sees what you see. If you lend it, choose 1 minute.

  • If you lose everything

    A sole owner without their words and without any phone can't get back into those books. It's the cost of nobody else holding a key.

  • No outside audit yet

    The design was reviewed internally, issue by issue, but no outside firm has audited it.

"We can't read your books" isn't a promise you have to take on trust: it's enforced by the keys on your phones, the signatures every phone checks, and tests that fail if it ever breaks.