title: Decoding/encoding openssl aes cbc string between Perl and PHP
body: <p>I'm writing some server code in PHP and I have an offline process written in Perl and they need to communicate via encrypted strings. In PHP I have been using:</p>
  
  <pre>
  $encrypted_string = openssl_encrypt($my_string, "aes-128-cbc", "my_password", true, "1234567812345678");
  </pre>
  
  <p>I'd basically like to achieve the exact same string output using Perl. Any help with how I would do this is appreciated. Thanks!</p>