I need to encrypt a file via AES-256-CBC but with textual password 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.S. Note please that I need to do this not with command line openssl but with the library.