title: How to encrypt a file via AES-256-CBC with a password instead of a key and iv in the openssl library?
body: <p>I need to encrypt a file via <code>AES-256-CBC</code> but with <strong>textual password</strong> instead of a key and iv. I think, that there is no any way to do that so I must convert my textual password to the byte array, expand it somehow to the key length and treat it as a key, and then.. I don't know what to do with the initialization vector. So the question is how to correctly do this?</p>
  
  <p>P.S. Note please that I need to do this not with command line openssl but with the library.</p>