TL;DR

#!/bin/bash
 
key128="1234567890123456"
iv="1234567890123456"
 
echo "good" \
  | openssl enc -aes-128-cbc -K $key128 -iv $iv \
  | openssl enc -aes-128-cbc -d -K $key128 -iv $iv