How I implemented my own crypto
I am terrified that I do not consider myself competent enough to write a crypto library, and yet there isn&#x27;t a single mention - in this article, nor at the time of writing the comments here on Hacker News - of many of the pitfalls I know to avoid when undertaking such an endeavour. There is even a list of &quot;you have to do A, B, C, and that&#x27;s about it&quot; that is missing some major - well known, even! - items.<p>I know &quot;don&#x27;t roll your own crypto&quot; comes across as dismissive or patronising. I&#x27;m not a huge fan of the phrasing. But as a first-order approximation, it is correct. If you want to roll your own crypto, that needs to be your _thing_. It&#x27;s very unlikely you&#x27;re going to be a fantastic full-stack web developer _and_ be able to do that. If it&#x27;s really what you want to do then awesome! Go study it, learn it, practice it. But if you&#x27;re doing it as a side-hobby, never put it into production.