Password to key function compatible with OpenSSL commands?

OpenSSL uses the function EVP_BytesToKey. You can find the call to it in apps/enc.c. The enc utility used to use the MD5 digest by default in the Key Derivation Algorithm (KDF) if you didn’t specify a different digest with the -md argument. Now it uses SHA-256 by default. Here’s a working example using MD5: #include … Read more