Four reasons why cryptography is so hard to get right and four solutions
https://www.information-age.com/four-reasons-why-cryptography-is-so-hard-to-get-right-and-four-solutions-123484516/ [www.information-age.com]
2019-08-03 01:50
Before proceeding, I want to stress that everything I refer to here relates to mistakes made when using (good) cryptographic libraries. The challenge of implementing the low-level cryptographic primitives themselves (like AES, RSA, ECC and so on) is a very different one, requiring high cryptographic engineering experience and knowledge. As such, this should be avoided whenever possible. In contrast, many software engineers need to just use cryptography in their work, and this cannot be avoided. Unfortunately, even this turns out to be far more problematic than expected.
This rings very true. The recommended solution, use a better library instead of lower level pieces, is also good, but should probably give some names. libsodium for example.
source: green