by jpgoldberg · 9y ago · 0 comments
1. Crypto delivered to the browser over HTTPS depends on the integrity of HTTPS.
2. A browser is a very hostile environment (injected JS, other browser extensions, etc.)
3. JavaScript may not be the best language for coding certain things (e.g., it is hard to remove strings from memory)
Depending on your use, some of these might be larger concerns than others. For us, 1Password.com, (1) is the biggest concern for those using the web-app. Our approach is to be very strict about TLS (TLS 1.2 only, HSTS, etc) and to encourage use of the native clients over the web-app.
Banking industry doesn't have much of a choice, they have to provide an online portal to service their customers. Customer's don't want or need a banking application to check their balance or do a bill pay.
Can this be achieved with extensions?
What makes this unsafer than, lets say SSH?
I mean, it is a software I download from somewhere, just like a browser, so if I trust SSH to encrypt stuff I want, why can't I trust the browser to do the same?
It is also much harder to monkey-patch a native binary than to inject js into a browser tab.
Browsers by default trust any of hundreds of CA's, while SSH trusts none by default.
It's abstracted away from you, but with some work I feel a browser UI could be made to help with this process if people wanted it.
But can't the browsers provide APIs for this?
I mean they force me to directly use user-events to switch to full-screen, why can't the do such things for crypto APIs, so that no one could mess with this?
If one end is the browser, and the other end is the server, then we already have end-to-end encryption: https (as long as you don't use a TLS terminating CDN).
For example a social network, where I create messages and encrypt them and only my friends can read them, not the server.