Search Blog

Knowledge · Privacy

An App Without Server Storage Isn't Automatically Safe — Local Data and Encryption

The benefits and limits of local-first storage, encryption, and backups

Understand the security tradeoffs between server-side and local-first apps, including IndexedDB, encryption, XSS, and device loss.

When using a web app to convert photos or track personal finances, it is worth asking where the files and records are stored. Some services keep them on a server; others process them on the user's device. Not storing data on a server is not, by itself, a guarantee of better security. Each approach changes the benefits and the risks to consider.

Comparing the two approaches

QuestionServer storageLocal storage
Does the operator hold the user's records?Often, depending on designCan be designed not to
Can another device resume easily?Often via account syncRequires explicit sync or backup
What happens when the device is lost?Recovery may be availableData may be unrecoverable without backup
Major risksServer breach, account compromise, access controlsDevice access, XSS, extensions, backup leakage

A browser can store substantial data in IndexedDB, but using IndexedDB does not encrypt its contents by default. OWASP warns that hostile scripts on the same origin may read or modify browser storage. Local-only should never be interpreted as invulnerable.

Encryption helps, but key handling matters

Sensitive information can be encrypted before it is stored. That still leaves questions about password strength, where encryption keys live, what happens while the vault is unlocked, and how backups are protected. Even perfect local storage cannot recover data that was lost with an unbacked-up device.

Why I chose to keep personal investment records on the device

While building a tool for tracking investments, one important question was where to keep account details, share quantities, and average purchase prices. ONSEMO Invest is designed to encrypt and store those personal financial records on the user's device, rather than collect them on a server. Public market research and individual financial records are treated separately.

That decision does not remove every risk. Recovery after device loss, access while the vault is unlocked, and safe handling of backup files still need attention.

The thinking behind separating private records from external analysis is described in this related story.

Related readingA Platform That Connects Roles, Not Just More Features

Rethinking ONSEMO Invest as a platform that protects personal records, respects data-use restrictions, and connects analysis where it helps.

What matters more than the phrase “no server storage” is being clear about the actual data flow, encryption keys, backup and recovery, and deletion—and checking that the implementation matches those claims.

References

PrivacyData securitylocal-firstIndexedDBencryptionXSSbackupsprivacy
Connected projectsBLOGInvestCart