News for hackers. Stuff that matters.
Re:Show HN: Retriever – Securely share secrets over the inte... by tptacek on Wednesday January 24, 2024 @05:10PM (#39123257)
People keep reinventing Magic Wormhole, and nobody has really done it better; most of them don't even reach parity.

https://github.com/magic-wormhole/magic-wormhole

Re:Show HN: Retriever – Securely share secrets over the inte... by chasingtheflow on Wednesday January 24, 2024 @06:22PM (#39124017)
But you have to have it installed. I could see this solution being useful for dealing with non-technical users.
Re:Show HN: Retriever – Securely share secrets over the inte... by meejah on Thursday January 25, 2024 @03:40PM (#39134957)
There is a Web client at https://winden.app (although it uses different servers than the defaults in the Python CLI, the latter can be easily configured to use the same servers).

However, see further discussion in this article about the difficulties of Web / JavaScript security in this context (i.e. you're depending on the people operating the Web server to not serve different JS on each and every visit).

Re:Show HN: Retriever – Securely share secrets over the inte... by emptysongglass on Thursday January 25, 2024 @03:36AM (#39127483)
Haven't found anything better than croc, personally.

https://github.com/schollz/croc

Re:Show HN: Retriever – Securely share secrets over the inte... by tptacek on Thursday January 25, 2024 @10:21AM (#39130450)
Croc is an iteration of the magic wormhole design. Magic wormhole is more popular. Either is fine.
Re:Show HN: Retriever – Securely share secrets over the inte... by subtra3t on Thursday January 25, 2024 @10:27AM (#39130516)
I know github stars isn't a very accurate metric but croc has roughly 8 thousand more github stars than magic wormhole.
Re:Show HN: Retriever – Securely share secrets over the inte... by tptacek on Thursday January 25, 2024 @10:46AM (#39130752)
That's fascinating.
Re:Show HN: Retriever – Securely share secrets over the inte... by subtra3t on Thursday January 25, 2024 @12:23PM (#39132045)
I meant to imply that croc is more popular than magic wormhole.
Re:Show HN: Retriever – Securely share secrets over the inte... by amelius on Thursday January 25, 2024 @06:54AM (#39128556)
How secure is that, though?
Re:Show HN: Retriever – Securely share secrets over the inte... by tptacek on Thursday January 25, 2024 @10:20AM (#39130443)
Very. Much more secure (respectfully!) than this is.
Re:Show HN: Retriever – Securely share secrets over the inte... by amelius on Thursday January 25, 2024 @10:37AM (#39130632)
Sorry, I got confused. I just looked back at old HN discussions, and it was Croc with the security issues, not Magic Wormhole.
Re:Show HN: Retriever – Securely share secrets over the inte... by jcul on Thursday January 25, 2024 @03:49PM (#39135085)
I'm curious as to why you think that?

I only took a glance at their "why we built this" page, but it seems sound to me. Also, it seems to serve a different purpose to wormhole.

Wormhole allows you to easily ans securely transfer files between two machines, if I understand correctly.

This is a convenient way to generate a public / private key pair and share your public key with someone encoded in a URL. In turn they can conveniently encrypt a short message using your public key which is also encoded in a URL for sending back over an insecure channel.

Being in the browser and having to trust it is not sending anything online, is not ideal. But on paper the concept seems pretty sound to me. I think it's a cool idea and can imagine it could come in useful.

Re:Show HN: Retriever – Securely share secrets over the inte... by akerl_ on Thursday January 25, 2024 @08:22PM (#39137822)
> Being in the browser and having to trust it is not sending anything online, is not ideal. But on paper the concept seems pretty sound to me.

This seems contradictory. If the main thing that's useful is that it uses URLs/browsers, but using URLs/browsers breaks the security of the system, what part of it seems pretty sound?

Re:Show HN: Retriever – Securely share secrets over the inte... by jcul on Friday January 26, 2024 @01:44AM (#39139579)
I mean the concept of generating a private / public key pair and sharing a public key is pretty sound.

If your browser is compromised or can't be trusted then you have bigger problems.

But if we assume this site can be trusted not to send secrets online (which is easy to verify) and they are not rolling their own crypto primitives in javascript, then the idea is pretty sound imo.

Personally I would use gpg or openssl for this, but it's not that easy for non-technical users.

Re:Show HN: Retriever – Securely share secrets over the inte... by akerl_ on Friday January 26, 2024 @07:55AM (#39142093)
> But if we assume this site can be trusted not to send secrets online (which is easy to verify)

This would require every sender and recipient to read and understand the JavaScript on every page load, because there’s no guarantee that the server is sending every request the same content. It is in fact not easy, especially for non technical users.

If we’re just assuming the site is trustworthy, the public key crypto isn’t necessary. If the site isn’t trustworthy, the public key crypto isn’t secure, because the site is in a position to compromise the private keys.