News for hackers. Stuff that matters.
Re:JavaScript Cryptography Considered Harmful by pdkl95 on Wednesday June 18, 2014 @04:30AM (#7909039)
What about browser bugs?

I'd like to suggest that the software agent that has access to your private keys should NOT be in the same process as an agent that directly handles data from the internet. The reasoning is simple: defense in depth, and the principle of privilege. Really, this is no different than the idea of running a web server in a chroot(2) jail.

A proper solution that might be something that can be provided in some sort of browser extension (*though it's likely to have platform-specific requirements) is to simply call gpg as an external process. It shouldn't be hard to wrap that up in an API provided by the extension.

Of course, it would be even nicer if the browser's provided that feature directly, as they could utilize platform-specific features such as a secure-password-entry UI (e.g. pinentry)

Re:JavaScript Cryptography Considered Harmful by mike-cardwell on Wednesday June 18, 2014 @05:01AM (#7909107)
I agree. It should talk directly to gpg-agent. That way, it would automatically have support for things like the Crypto Stick and smartcard readers, and wouldn't necessarily have direct access to the keys.