echo -n "test" > test.txt
echo -n "12345" > f5.txt
echo -n "1234567890abcdef" > f16.txt

wc -c test.txt f5.txt f16.txt

openssl enc -aes-128-ecb -e -in test.txt -out test_ecb.enc -K 00112233445566778899aabbccddeeff
openssl enc -aes-128-cbc -e -in test.txt -out test_cbc.enc -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
openssl enc -aes-128-cfb -e -in test.txt -out test_cfb.enc -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
openssl enc -aes-128-ofb -e -in test.txt -out test_ofb.enc -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10

wc -c test_ecb.enc test_cbc.enc test_cfb.enc test_ofb.enc

openssl enc -aes-128-ecb -e -in f5.txt -out f5_ecb.enc -K 00112233445566778899aabbccddeeff
openssl enc -aes-128-cbc -e -in f5.txt -out f5_cbc.enc -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
openssl enc -aes-128-ecb -e -in f16.txt -out f16_ecb.enc -K 00112233445566778899aabbccddeeff
openssl enc -aes-128-cbc -e -in f16.txt -out f16_cbc.enc -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10

wc -c f5_ecb.enc f5_cbc.enc f16_ecb.enc f16_cbc.enc

openssl enc -aes-128-ecb -d -nopad -in f5_ecb.enc -out f5_ecb.raw -K 00112233445566778899aabbccddeeff
openssl enc -aes-128-cbc -d -nopad -in f5_cbc.enc -out f5_cbc.raw -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10
openssl enc -aes-128-ecb -d -nopad -in f16_ecb.enc -out f16_ecb.raw -K 00112233445566778899aabbccddeeff
openssl enc -aes-128-cbc -d -nopad -in f16_cbc.enc -out f16_cbc.raw -K 00112233445566778899aabbccddeeff -iv 0102030405060708090a0b0c0d0e0f10

hexdump -C f5_ecb.raw
hexdump -C f5_cbc.raw
hexdump -C f16_ecb.raw
hexdump -C f16_cbc.raw
