Live data from Hacker News

Show HN: Get encrypted data from people that don’t know how to encrypt

github.com

11–20 of 96 posts

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#11
post #8

$ echo "Hello world" > message.txt gpg --sign message.txt $ gpg --verify message.txt.gpg gpg: Signature made Wed 19th october 2016, 12:19:19 CEST using RSA key ID D9AE6E9E gpg: Good signature from "John Smith " $ echo "evil" > message.txt $ gpg --verify message.txt.gpg gpg: Signature made Wed 19th october 2016, 12:19:19 CEST using RSA key ID D9AE6E9E gpg: Good signature from "John Smith "

I don't think I'm smart enough to infer what you're trying to say. Care to elaborate?

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#13
post #8

$ echo "Hello world" > message.txt gpg --sign message.txt $ gpg --verify message.txt.gpg gpg: Signature made Wed 19th october 2016, 12:19:19 CEST using RSA key ID D9AE6E9E gpg: Good signature from "John Smith " $ echo "evil" > message.txt $ gpg --verify message.txt.gpg gpg: Signature made Wed 19th october 2016, 12:19:19 CEST using RSA key ID D9AE6E9E gpg: Good signature from "John Smith "

I don't think I'm smart enough to infer what you're trying to say. Care to elaborate?

He's saying that, even though he changed the message, the signature still validated. He doesn't realize that the resulting GPG file contains the message, so it's verifying it against its own, stored copy.

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#14
post #7

Earlier quoted context omitted.

Yes, there is no JS source signing in the browser yet. Then again, do you check the (compiled) code that is delivered to you via source repositories with which you sign/encrypt your GPG messages? How many people read the OpenSSL source code? How trustworthy are the signatures on Debian packages?

What about SRI? "Subresource Integrity (SRI) is a security feature that enables browsers to verify that files they fetch (for example, from a CDN) are delivered without unexpected manipulation. It works by allowing you to provide a cryptographic hash that a fetched file must match." [0] https://developer.mozilla.org/en-US/docs/Web/Security/Subres...

SRI is a great way to make an html page that loads all the js from a server, tell the user to store that locally, and be sure that the loaded js files will never change (otherwise they won't get loaded).

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#15

Earlier quoted context omitted.

I don't think I'm smart enough to infer what you're trying to say. Care to elaborate?

He's saying that, even though he changed the message, the signature still validated. He doesn't realize that the resulting GPG file contains the message, so it's verifying it against its own, stored copy.

That's what I thought, but couldn't confirm. Basically he's verifying a valid file and inferring it relates to a different file.

Sounds like a UX problem than a technical one. It's equivalent to me zipping up a folder, changing the contents of that folder, then expecting the zip file to have the change as well.

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#16
post #5

js crypto's trust problem isn't solved yet. One has to trust hawkpost.co to not serve compromised client side js.

I've written a Firefox plugin [0] that checks hardcoded hashes (which can of course only work if the code doesn't change often) and a not-yet-published Chrome plugin that checks the source against the version on GitHub (which requires you to trust that either the webserver or GitHub will not be compromised).

@chomponthis: hit me up if you want to work on making either or both plugins work for HawkPost, email in profile.

[0]: https://addons.mozilla.org/firefox/addon/hcs-checker/

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#17
Ha, the use-case reminds me of something I wrote a few months back.

A complete in-browser RSA encrypted message sharing for one-time use. Like transferring passwords via unsecure channels (aka Skype).

It generates a keypair in the browser (offline) and guides also unexperienced users through the process. Frankly, its a dirty hack, but it does the job haha.

http://tomw1808.github.io/rsa-message-sharing/#/

Re: Show HN: Get encrypted data from people that don’t know how to encrypt

#19
Not sure if I understood it correctly, but in essence it lets your users enter some (secret) content which is then encrypted in the browser using PGP.

Except for the message signing and auto-emailing, I've implemented something similar:

Blogpost: https://0day.work/easy-pgp-composer-encrypting-pgp-messages-...

GitHub: https://github.com/gehaxelt/PHP-Easy-PGP-Composer

Demo: http://pgpcomposer.demo.0day.work/

Post reply on HN