Re: Decrypted TIF Image seems to not be identical. - WeOnlyDo Discussion board

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

by wodSupport, Saturday, December 31, 2005, 01:49 (4346 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.


Complete thread: