john price wrote:Here is the read in where the lines display extra lines. Note this does not happen if something hasn't been appended to the file.
Something is appended to the encrypted file ?
Does it mean, that something unencrypted has been appended to encrypted contents ?
If yes, then the problem is here - the encrypted file doesn't have
neither information of the content's size nor any checksum. The cipher doesn't detect the end of the encrypted output,
and it doesn't detect if contents has been modified.
It dencrypts the whole content - if something is appended to it,
it decrypts this part too.