TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Legality of web app with encrypted database?

1 pointsby pcarbonnalmost 9 years ago
For a Web App, I&#x27;d like to encrypt user entries on the client side before sending them to the server (and decrypt them after receiving them from the server). The encryption salt (chosen by the user) would be saved in the session on the client-side, NOT on the server.<p>The benefit for the user is that his data is fully protected in case of a server breach. Also, I would have no way to see his confidential data, so he does not have to trust me so much. (On the other hand, I would also have no way to help the user recover his salt if he loses it).<p>I don&#x27;t recall seeing that approach used anywhere. Do you know of any reason ?<p>Is it because of a legal requirement to be able to assist government investigation, and thus be able to read user data saved on the server ??

1 comment

csixty4almost 9 years ago
The most obvious reason is just casually glancing around my office there&#x27;s two PCs, two Macs, and two phones. Any of them could be in use at a time, and often the only thing that makes this convenient is having them all access the same data on a server somewhere.<p>Also, I can&#x27;t lose data on a server if my personal equipment is stolen, damaged, or has a catastrophic hardware or filesystem issue (like hit my Mac a couple months ago). Odds are the server is running much better hardware than I can afford, with much better redundancies.