I'm trying to encrypt a string like this:
echo "hey" | openssl enc -aes-256-cbc-hmac-sha1 -md sha256 -pass pass:foo -base64
But word on the street is that older versions of openssl are not salty enough and can expose your password. The suggestions are to upgrade to openssl 1.1, use GPG, or supply your own key. I don't care if the key algorithm matches pbkdf2 exactly, but how would I go about creating a more acceptable key? In other words, something similar to:
openssl -aes-256-cbc -pbkdf2 -iter 10000