I have encrypted and decrypted fine in javascript...

Do you know what openssl method I can use to encrypt decrypt that will be compatible?

openssl enc -aes-256-cbc ?