Re: Decrypted TIF Image seems to not be identical. (General questions)

by Jasmine, (7061 days ago) @ Alex Loret de Mola

Alex,

it's expected. Ciphers work on block of data, so when you encrypt, last chunk has to be aligned up to a 'BlockSize' of data, so few bytes are added. When you decrypt it, those bytes are also added to decrypted file. That's why you see garbage .

To get rid of it, use Optimized = True, or use PKCS7 padding.

locked

Complete thread: