Re: Problem with Image Loading - WeOnlyDo Discussion board

Re: Problem with Image Loading (General questions)

by wodAlan, Wednesday, May 17, 2006, 09:12 (6765 days ago) @ Maverick5

Hi Maverick,

I think that I see the problem. 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 , or like in your case you cannot open the image.
To get rid of it, use Optimized = True, or use PKCS7 padding.
Also I presume that you encrypt your image with wodCrypt.
Hope I helped,

Regards,
Alan


Complete thread: