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

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

by Alex Loret de Mola, Monday, January 02, 2006, 04:14 (4344 days ago) @ wodSupport

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.

Ah, okay, I'll try it with the optimized setting then. Does that have any negative effect (as I remember reading somewhere in the docs that I shouldn't be setting it to Optimized)?

-Alex


Complete thread: