The author of the post happens to be the person who implements your crypto, so you don't have to roll your own: https://github.com/FiloSottile.
(I personally also wouldn't use OpenSSL as an example of good cryptographic code)
(I personally also wouldn't use OpenSSL as an example of good cryptographic code)