A friend wanted me to look at some bad crypto code he found recently. It was floating around the internet and Reddit until the the blog post was removed.
Here’s the original link: Encrypt/Decrypt long string with PHP OpenSSL & key pairs
Here’s the saved PDF of the blog post.
The idea behind this post is pretty simple, encrypting some long string securely with OpenSSL by using low level functions in OpenSSL.