Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean fair enough I suppose? I've always gone with the idea that "don't roll your own crypto" meant not implementing cryptographic building blocks. Which is reasonable and fair. I just take issue with it being something you'd apply to all crypto code.


> I just take issue with it being something you'd apply to all crypto code.

That this discussion is happening at all in response to a blog post that begins by linking to https://www.cryptofails.com/post/75204435608/write-crypto-co... is amusing and concerning in equal measure.

I don't care if you write crypto code. I never said I cared if you write crypto code. But don't:

1. Deploy your code

2. Publish your code in a package ecosystem

3. Encourage other people to use your code

...unless it's survived the gauntlet of peer review and has a good rationale for existing in the first place.

The reason I proposed an onion model for this discourse is that there isn't a binary switch where "if you do X you are rolling your own crypto but if you do Y you aren't rolling your own crypto". The deeper you slice, the more danger and responsibility you've incurred.

People who think "it's fine to build a custom protocol out of cryptography bricks because I'm not rolling my own bricks" are the highest risk group in software developers. Even moreso because (as tptacek constantly points out) most vulnerabilities occur at the joinery.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: