#!/bin/bash
openssl enc -aes-128-cbc -e -in plain.txt -out aes_cbc.bin -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
xxd aes_cbc.bin
openssl enc -aes-128-cbc -d -in aes_cbc.bin -out aes_cbc_dec.txt -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
cat aes_cbc_dec.txt
