News for hackers. Stuff that matters.
[dead]
Re:Build Your Own X by Dracophoenix on Wednesday July 20, 2022 @01:36AM (#32161830)
I knew someone would say this.

"Never roll your own cryptography", despite the ambiguity of its phrasing, means never use uncertified crypto in production unless you're willing to take the risk. It doesn't mean to never build cryptography without an expert's permission. Everyone who has ever published world-class cryptography has rolled their own crypto.

Re:Build Your Own X by misterjinx on Wednesday July 20, 2022 @04:35AM (#32163004)
That is what I meant by my comment, I was not referring to learning exercises, I should've been more clear, though.
Re:Build Your Own X by Dracophoenix on Wednesday July 20, 2022 @07:11AM (#32164061)
My apologies then. I've seen this phrase repeated ad nauseam even when its not warranted and I want to point out that it shouldn't be followed blindly.
Re:Build Your Own X by NavinF on Wednesday July 20, 2022 @03:19AM (#32162563)
“20 years of abstinence-only cryptography education hasn’t gotten us anything but an endless supply of bad crypto in production systems”
Re:Build Your Own X by hnlmorg on Wednesday July 20, 2022 @07:22AM (#32164151)
People absolutely should. The best way to understand how something works is to build it.

What that phrase means is you shouldn't use hobby crypto libraries for any important production services. But that's also not the point behind "Build Your Own" type projects. So your advice isn't correct in this scenario.

Re:Build Your Own X by codegladiator on Wednesday July 20, 2022 @01:59AM (#32161990)
Everyone should build one, as early as possible and fail and then come to this realization.
Re:Build Your Own X by 8n4vidtmkvmk on Wednesday July 20, 2022 @02:55AM (#32162407)
the only issue is what it means to "fail". it's not really an issue until you're hacked and then it's too late
Re:Build Your Own X by medo-bear on Wednesday July 20, 2022 @03:46AM (#32162735)
to fail doesn't mean to fail in production
Re:Build Your Own X by hdjrudni on Wednesday July 20, 2022 @10:51PM (#32175215)
right, but how else are you going to know your crypto is broken? what unit test is going to fail?
Re:Build Your Own X by medo-bear on Thursday July 21, 2022 @05:22AM (#32177267)
if you need expert opinion on your library order a security audit. otherwise even expert-designed systems have failed and most people know that it is very unwise to give security guarantees to devices that have so many moving parts