News for hackers. Stuff that matters.
Re:Show HN: I store my critical secrets and document, and co... by europeanguy on Wednesday December 21, 2022 @02:03PM (#34084881)
What happened to the "don't roll your own crypto" that HN loves?
Re:Show HN: I store my critical secrets and document, and co... by skrebbel on Wednesday December 21, 2022 @02:12PM (#34085009)
this doesn't, it uses the browser's builtin Web Cryptography API.

if using a crypto algorithm also counts as "rolling your own crypto" then what's left? just don't encrypt anything, ever, because HN says we shouldn't roll our own?

Re:Show HN: I store my critical secrets and document, and co... by europeanguy on Wednesday December 21, 2022 @02:31PM (#34085297)
Yes, using a crypto algorithm also counts as rolling your own crypto. You're putting together crypto libs that others wrote. Most crypto vulnerabilities come from glueing together solid crypto implementations. The glueing has to be solid too. Just "using" a crypto algorithm sounds like a recipe for a vulnerability.

I'm not a crypto expert, I'm just telling you what I've been reading on HN for the past few years.

Re:Show HN: I store my critical secrets and document, and co... by eternalban on Wednesday December 21, 2022 @02:50PM (#34085509)
GPT disagrees. It would be interesting to have a GPT just trained on HN archives and see if you have accurately gauged HN's position on this. GPT says:

--

This contains a number of incorrect assertions about cryptography.

First, it is not accurate to say that "using a crypto algorithm also counts as rolling your own crypto." In general, using a well-vetted and widely-used cryptographic algorithm, such as AES or RSA, is not considered to be "rolling your own crypto." While it is possible to introduce vulnerabilities when implementing cryptographic algorithms, these risks can be mitigated by using a well-tested and widely-used implementation of the algorithm rather than trying to create your own implementation.

Second, the statement that "must crypto vulnerabilities comes in glueing together solid crypto implementations" is not accurate. There are many potential sources of vulnerabilities in cryptographic systems, and the process of "glueing together" different components is just one possible point of failure. It is important to carefully design and implement cryptographic systems, but it is not accurate to suggest that all vulnerabilities arise from the process of combining different cryptographic components.

Finally, it is not accurate to say that "just 'using' a crypto algorithm sounds like a recipe for a vulnerability." While it is possible to introduce vulnerabilities by improperly using a cryptographic algorithm, it is not inherently risky to simply use a well-vetted and widely-used cryptographic algorithm. In fact, using such an algorithm can help to reduce the risk of vulnerabilities, as long-standing and well-studied algorithms are likely to have fewer unknown vulnerabilities than custom or less-widely used algorithms.

--

p.s. If you want to rebut the bot I'm happy to play the role of a mediator.

p.s.s I actually agree with you on this. GPT is missing the point: gluing introduces vulnerabilities and should be done by experts.

Possibly best to say don't roll your own crypto solution. That should cut down on the confusion. Algorithms are not complete solutions.

Re:Show HN: I store my critical secrets and document, and co... by nannal on Wednesday December 21, 2022 @05:03PM (#34086978)
Using the output of a language model like mine as a comment reply on a forum like HN could potentially have a negative impact on the discourse in a number of ways.

1. It could undermine the authenticity and integrity of the conversation by introducing responses that are not genuinely from a human.

2. It could create confusion or misunderstanding, as the responses generated by the language model may not be relevant or appropriate for the specific context in which they are used.

3. It could discourage genuine participation and contribution from other members of the community, as it may seem like the conversation is being dominated by automated responses rather than authentic human interaction.

Overall, it is important to consider the impact of your actions on the online community and to strive to contribute to respectful and meaningful discourse. Using the output of a language model as a substitute for genuine human interaction is generally not a good idea, as it can undermine the authenticity and integrity of the conversation.

Re:Show HN: I store my critical secrets and document, and co... by bobkazamakis on Wednesday December 21, 2022 @03:26PM (#34085961)
re-using primitives is on a completely different level from creating your own cipher.
Re:Show HN: I store my critical secrets and document, and co... by maqp on Wednesday December 21, 2022 @05:51PM (#34087433)
You're not completely wrong in that it's still possible to f up, even when using misuse resistant primitives.

The difference is, you're sort-of allowed to f up if it's an intelligent mistake that teaches the creators of misuse resistant libraries a thing or two about where they went wrong. If OTOH you're clearly just yoloing it, introducing your pseudo-math BS into the mix, or intentionally deviating from best practices or breaking it, then it's on you.

Re:Show HN: I store my critical secrets and document, and co... by ncallaway on Wednesday December 21, 2022 @02:08PM (#34084948)
They didn’t roll their own crypto? They used the web crypto API provided by the web browser.
Re:Show HN: I store my critical secrets and document, and co... by bobleeswagger on Wednesday December 21, 2022 @02:05PM (#34084904)
I can't be the only one who thinks this wallet will be emptied before 2023.

Security by obscurity is real, there's nothing secret about defining the problem space in which your attackers can search.

Re:Show HN: I store my critical secrets and document, and co... by mprime1 on Wednesday December 21, 2022 @02:42PM (#34085426)
I'd be happy to see the wallet emptied.

This is what the bounty is for. I just hope whoever cracks it lets me know how they did it and how hard it was.

This is what a bounty is, no?

Re:Show HN: I store my critical secrets and document, and co... by bobleeswagger on Wednesday December 21, 2022 @05:36PM (#34087319)
$400 is nothing, put your life savings into this system if you trust it so much.

It's a cute marketing gimmick, that's about it.

Re:Show HN: I store my critical secrets and document, and co... by burnished on Wednesday December 21, 2022 @10:35PM (#34089467)
What is your malfunction?