I am writing this as I walk towards the supermarket at night. I’m going to get some cheap noodles, tofu and sausages. I am listening to music now, too. I know it is a stupid idea, and yet, there’s quite a bit I want written.
There is a meme, not a fun one, a generic idea in the programming community that spreads. It appeared along with another one, around the time I started hearing the classic “I have nothing to hide” phrase John Gilmore so eloquently debunked in his talk. The meme at hand is “you shouldn’t implement your own cryptography”, a phrase to which different people attribute different, increasingly broad meanings. On Hacker News there was a whole chronology with one of the comments ending like “you shouldn’t do anything remotely connected to security unless you are a security expert”. And an idea that remains vague while spreading and growing in scope is insidious by its very nature. See, what bothers me about both phrases is how easily they can discourage people from asking questions about things they have every reason to care about.
Thus, I strongly disagree with it.
From time to time, I hear people preaching this idea to me, with different meanings and different scopes. As something of a tradition, I keep politely asking for their interpretation of the phrase and its scope. And then, further and further, I ask the same question. “Why?”
Despite its Socratic connotations, it doesn’t work as well in real life, unless, of course, you enjoy posing as a winner no matter how conversation ends. But I am not trying to troll anyone reading this.
If anything, it’s December 2026 as I write this note and people keep arguing about LLMs “breaking all encryption”, but then it’s computers, but then it’s mathematicians, but then it’s not quite broken, all with mostly vague news on RSA and a lot of politics involved. Only a small handful of people have arguments grounded in maths rather than in their emotional states caused by a wide range of unrelated phenomena. Only a small handful of people have actual things to say.
Now, if there’s anything to preach, I want to encourage you to look into cryptography in general, the mathematics behind it, the hardware it runs on. I am in no way an expert myself, but I think it’s a worthy pursuit, because you gain a better understanding of what you should and should not trust.
I am certainly not telling you to memorize all the standards, to learn what’s “better” and what is “worse”. It’s typically much more complex and interesting, no matter the topic. Look into hash functions, random number generators (hardware and software), what types of RNGs there are, how we estimate the trustworthiness of RNGs, how modern cryptographic algorithms and CPU instructions that accelerate them work, how elliptic curves and the relevant mathematics work. Implement some of it. See if you can reproduce the results of an existing implementation. See where yours breaks. Try to understand why your implementations break every single time. Heck, with enough dedication, perhaps you’ll even find a flaw in something used globally. You don’t have to ship something. If you’re writing something for the sake of learning, that matters, too.
I’ve been thinking of implementing some cryptographic algorithms on FPGAs for pretty much the same reasons people collect old computers. Some of those algorithms may eventually become obsolete. So what? I’ll learn. I’ll have things to show, not just anecdotes. Imagine getting a decorative item that can compute one or more types of hashes from your data, or maybe encrypt and decrypt your data. Isn’t that cool? Especially if it comes with neat instructions on how the algorithm is supposed to work, what it runs on, etc.
Stay out of hype. Don’t become a “collection of popular views”. Authority doesn’t make an opinion correct. Everyone, including me, is entitled to have a wrong one.
People I meet tend to value credentials more than curiosity even though the two are hardly mutually exclusive. But more importantly, curiosity has intrinsic value. It has a value beyond the possibility of making a career out of something you enjoy. Without curiosity, you don’t get to study something in the first place. Heck, there are parallels with the hiring of junior software engineers.
If we keep punishing curiosity while preaching ideas we don’t understand, we get fewer people interested in cryptography. And sure, some self-motivated experts will keep popping up; some of them will spend time getting credentials, but how many? The crowd responsible for development and support will keep getting less competent. And users, well, you get the gist of it. Much the same applies to software engineers retiring while fewer people are able to join the industry, really.
Look, my point is, if you’re writing code for a bank that uses cryptography actively and that part is your responsibility, maybe no, don’t try to replace the whole cryptographic stack with whatever you wrote after a week of research. But maybe, since a lot of us have certain responsibilities, we should dedicate time to learning what we ship. Maybe, since you may carry relevant responsibilities, take time to dig deeper, to understand why your program works.
The Internet, according to XKCD #2347: Dependency and reality (which is, obviously, less important as evidence compared to the wisdom of XKCD) is supported by programs made by a small handful of people. If you are not at least a bit concerned that your access to things you are responsible for, your money, your medical services, your media and your devices may depend on someone subject to a good old bus factor, ask yourself a single question: “Why?”
Do you have a decent answer?
Dammit, now it’s raining hippos! Well, I have another song in mind. And soon, some spicy noodles to feel at least a tiny bit better.
The thumbnail is inspired by Cmglee’s artwork, “Directed graph of all 100 2-digit pseudorandom numbers obtained using the middle-square method”, with a denser number representation.