Nice, but how did you port openpgp to Javascript?
I guess he used this lib: https://github.com/openpgpjs/openpgpjs/
Contact form encrypts message with PGP before sending
21–30 of 37 posts
Re: Contact form encrypts message with PGP before sending
#22The page loads jquery from google cdn, so at least google could inject js in the page and read the message before it gets encrypted. I know, for a contact form this is very unlikely, but just from a security point of view, if I would write something like this, I would host js loaded by the page on my own server.
Re: Contact form encrypts message with PGP before sending
#23I hope the issue of usability gets more attention in future security tool development.
Re: Contact form encrypts message with PGP before sending
#24Re: Contact form encrypts message with PGP before sending
#25Re: Contact form encrypts message with PGP before sending
#26google cannot translate his form. Why not? If I can see it, so can google.
Re: Contact form encrypts message with PGP before sending
#27Is there any benefit of doing this on the client side? The message is sent through HTTPS anyway. If HTTPS was compromised, the javascript code signing the message, and the signing key, and everything related to handling the clear text message would be compromised too anyway. This is redundant with HTTPS, but also useless if HTTPS is MITM.
Eh, it might be a bit useful if there's a passive adversary on the server. They can read traffic, but not change anything. Pretty unlikely scenario, so it doesn't really buy you much.
Re: Contact form encrypts message with PGP before sending
#28Earlier quoted context omitted.
Presuming the private key for the messages is not on the server, then old messages will not be compromised. A kind of perfect secrecy for messages.
No need to do this on the client side then (that was my point)
Re: Contact form encrypts message with PGP before sending
#29Earlier quoted context omitted.
If your browser is untrusted, you are doomed. > Furthermore, this helps against content disclosure if the server is compromised. If the server is compromised, openpgp.js is compromised too.
Presuming the private key for the messages is not on the server, then old messages will not be compromised. A kind of perfect secrecy for messages.
Re: Contact form encrypts message with PGP before sending
#30You've added a fair bit of complexity for no specific benefit; likely a net loss in terms of security.