I have a 16 byte file, and after encrypting it, its size weirdly changes.
> hexdump -C 1.txt
00000000 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 |aaaaaaaaaaaaaaa|
0000000f
> openssl enc -v -aes-128-ecb -nosalt -base64 -in 1.txt -out 2.txt
...
bytes read: 16
bytes written: 45
It becomes 45 bytes.
- Why is it not a multiple of 16, since AES has 16-byte blocks?
- If openssl adds a header of some sort, how large is it, and is it fixed size? I can't find any thing in the documentation that mentions this.