← Back to CeylonCharts

How Private portfolios are protected

Last updated: November 25, 2026

A Private portfolio is encrypted in your browser before anything is saved. CeylonCharts stores only ciphertext and can’t read it. This page says what that protects you from, and what it can’t.

What stays in your browser

  • Your passphrase. It is never sent to CeylonCharts, in any request.
  • Your recovery key, shown once when you set up your passphrase.
  • Your quick-unlock PIN, if you set one for a device. It works only on that device.
  • The data key that encrypts your transactions. It is created in your browser and only leaves it wrapped (encrypted) under your passphrase and, separately, under your recovery key.
  • Everything you enter: dates, types, symbols, quantities, prices, fees, notes, document references, and the portfolio’s name and cash setting.

What CeylonCharts stores

  • For each transaction: an encrypted blob, a keyed hash used to spot duplicate imports (it reveals nothing about the document it came from), how it was entered (by hand, CSV, PDF…) and when it was saved.
  • For each Private portfolio: its encrypted name and cash setting, and how many transactions it has.
  • For your account: the random salt, the number of key-derivation rounds and the two wrapped copies of your data key.
  • For each device with quick unlock: its name, when it was added and last used, and a random device key. That key is only half of what unlocks the device; the other half is your PIN, which CeylonCharts never sees.

Someone with the database, the server logs or Cloudflare’s logs sees those and nothing more: not which stocks you hold, how many, at what price, or when.

How it works

  • Your passphrase is stretched with PBKDF2-SHA256 over 600,000 rounds and a random 16-byte salt into a key that unwraps your data key. A wrong passphrase simply fails to unwrap it; nothing is stored that a passphrase could be checked against.
  • Because someone with the database could try passphrases on their own computer, it must be at least 12 characters, not only digits, and not a common password. A few unrelated words are easy to remember and would take far too long to guess.
  • Quick unlock. On a device you choose, you can set a PIN of 6 or more digits. That device keeps its own wrapped copy of your data key, in its browser storage, under a key made from your PIN and a random device key that CeylonCharts keeps and sends only when you unlock. Neither half works alone: the database has the device key but not the copy, and the device has the copy but not the device key. After 10 wrong PINs the copy is deleted and you need your passphrase.
  • You can see your quick-unlock devices and revoke any of them (in Private security, in the portfolio’s ⋯ menu). Revoking deletes that device key, so the PIN can’t unlock anything on that device again, even from a copy of its storage.
  • Each transaction is encrypted on its own with AES-256-GCM and a fresh random IV, and tied to its portfolio, so a changed or moved transaction fails to decrypt and the portfolio stays locked rather than showing altered numbers.
  • Prices come from whole-market feeds that are the same for every visitor, so loading prices doesn’t reveal what you hold.
  • Your data key is kept in memory only, never in browser storage, and is forgotten when you lock, log out, close or reload the tab, or leave the portfolio page idle (after 30 minutes unless you choose otherwise).
  • Changing your passphrase re-wraps the data key; your transactions aren’t re-encrypted, and your recovery key and quick-unlock PINs keep working. If you forget your passphrase, your recovery key opens the data key, you set a new passphrase, and you can make a new recovery key too.
  • The code that does this is small and kept in one file so it can be reviewed on its own.

What it can’t protect against

  • A malicious update to the website. CeylonCharts serves the code that runs in your browser, so a deliberately changed version could capture your passphrase or PIN. No web app can rule that out. To make it harder, the portfolio page loads no third-party scripts (no analytics or session recording), a strict Content Security Policy limits what can run, and a Private portfolio won’t unlock in a page that has already run such scripts.
  • Your own device. Malware, a browser extension that can read pages, or someone using your unlocked computer can see what you see.
  • Someone with your device and your account. A quick-unlock PIN is short. Someone who has both the device’s browser storage and a signed-in session can get the device key and try PINs away from the 10-try limit. If a device with quick unlock is lost or stolen, revoke it from another device.
  • A guessable passphrase against someone who has the stored data. The rules above refuse the obvious ones; a name, a birthday or a line from a song can still be guessed.
  • Losing both your passphrase and your recovery key. CeylonCharts can’t reset either. You can start over, which deletes your Private portfolios (your Standard ones stay), but their transactions can’t be recovered.
  • What isn’t encrypted: how many transactions a portfolio has, when they were saved, how they were entered, that you have Private portfolios at all, and the names you give your quick-unlock devices. The server could also delete transactions or return an older copy of one; it can’t read or forge them.

Features that don’t work for Private portfolios

Anything that needs the server to know your holdings is off, and the page says so where it applies:

  • publishing to Community or sharing a link;
  • “held by” counts;
  • alerts that follow your holdings automatically (alerts you set by hand still work, and are stored like any other alert, so CeylonCharts sees their symbol);
  • benchmark series computed on the server, and MCP or AI tools.

Questions about this? Email our support team.