News for hackers. Stuff that matters.
Re:Show HN: Send encrypted secrets from the command line by tptacek on Thursday January 10, 2019 @02:31PM (#18877199)
The tool for this that everyone I know uses is Magic Wormhole. Wormhole has a more straightforward security model and is more thoughtfully designed: it uses a PAKE and relies on out-of-band secret sharing, rather than attempting a registry of "verified" public keys.

You should probably just use Wormhole.

    pip install magic-wormhole
Re:Show HN: Send encrypted secrets from the command line by rvnx on Thursday January 10, 2019 @08:54PM (#18880370)
Isn't there only 65K passwords/magic keywords in wormhole ? What if someone constantly bruteforce all of these combinations, wouldn't he get access to the files that you are sending ?
Re:Show HN: Send encrypted secrets from the command line by lotharrr on Friday January 11, 2019 @01:06AM (#18881363)
The short answer is that PAKE is single-use, so the attacker only gets one guess (and their attempt prevents the legitimate peer from trying either). Each time they consume someone else's transfer attempt, they get a 1-in-65k chance of succeeding, and a 65535-in-65536 chance of alerting the peer that they failed.

For the attacker to have a 50/50 chance of successfully stealing your file transfer, you'd have to (on average) re-run the `wormhole send` program over 30000 times. I don't know about you, but I'm not that patient, and I'd give up long before they had a significant chance of success :).

Re:Show HN: Send encrypted secrets from the command line by pvg on Thursday January 10, 2019 @09:28PM (#18880546)
This is covered in their docs, along with mitigation.

https://magic-wormhole.readthedocs.io/en/latest/attacks.html

Re:Show HN: Send encrypted secrets from the command line by paulfurley on Friday January 11, 2019 @04:59AM (#18882222)
That's cool, and I'm going to give it a go: thanks for raising it.

> The two endpoints are identified by using identical "wormhole codes": in general, the sending machine generates and displays the code, which must then be typed into the receiving machine. > The codes are short and human-pronounceable, using a phonetically-distinct wordlist. The receiving side offers tab-completion on the codewords, so usually only a few characters must be typed. Wormhole codes are single-use and do not need to be memorized.

I love that they've put some thought into usability here: that's nice.

Re:Show HN: Send encrypted secrets from the command line by lotharrr on Friday January 11, 2019 @01:08AM (#18881365)
BTW it's been in debian+ubuntu for a couple of years, so `apt install magic-wormhole` works too.